-
-
Notifications
You must be signed in to change notification settings - Fork 361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable cross compiling support without patches #1749
Enable cross compiling support without patches #1749
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1749 +/- ##
=======================================
Coverage 73.23% 73.23%
=======================================
Files 381 381
Lines 54343 54343
Branches 9246 9246
=======================================
Hits 39796 39796
Misses 11573 11573
Partials 2974 2974 ☔ View full report in Codecov by Sentry. |
9a091a8
to
984488b
Compare
4d249f6
to
4369f84
Compare
433c941
to
4d060bd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is somewhat out of my wheelhouse, but as far as I can tell it looks overall good to me (and the CI passes!).
I have two trivial comments about buildutils.py
... we may want to start being consistent with PEP 484 for additions as it really takes out the guesswork about what those parameters are to be expected?
Thanks @ischoegl! Good suggestions, I added them 😄 |
7ac6ae8
to
1a66bb7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @bryanwweber. It will be really nice to be able to avoid the painfully slow emulator-based builds. I had just a couple of small comments.
Putting the definition in buildutils lets other functions in buildutils use config_error
Introduce a function to run the C preprocessor. This can be used to output values of #defined variables in header files without actually running a program.
Since we can run the C preprocessor to find version information about Sundials, we can simplify many of the checks we have when the system Sundials is specified. In particular, we can determine ahead of time which calls we expect to find and which libraries to use, without having to compile each one. In addition, the Sundials check is refactored into buildutils to simplify SConstruct
Why was this even implemented for apple clang?
We don't need defines in there anymore.
The setting previously didn't correctly check for mingw in the toolchain variable.
If the text is empty we don't want to process even if the return was successsful
Other configuration relies on this being set to 'n' when we're using the private Sundials submodule
Versions of fmtlib compiled with Unicode support require the /utf-8 flag
1a66bb7
to
36e3cf4
Compare
36e3cf4
to
250bc53
Compare
@speth Comments are addressed, thanks for the review! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @bryanwweber!
Changes proposed in this pull request
#define
d values.If applicable, fill in the issue number this pull request is fixing
Closes Cantera/enhancements#210
If applicable, provide an example illustrating new features this pull request is introducing
Checklist
scons build
&scons test
) and unit tests address code coverage