-
Notifications
You must be signed in to change notification settings - Fork 4
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
Feature: command line parser enabled var #78
Conversation
…build to signal if the command line parser part has been enabled
Codecov Report
@@ Coverage Diff @@
## main #78 +/- ##
=======================================
Coverage 90.38% 90.38%
=======================================
Files 47 47
Lines 3277 3277
Branches 644 644
=======================================
Hits 2962 2962
Misses 250 250
Partials 65 65 see 3 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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.
🐱 ! Only two nits:
impl/meson.build
Outdated
@@ -205,6 +210,17 @@ endif | |||
if meson.is_cross_build() | |||
hostCXX = meson.get_compiler('cpp', native: true) |
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.
Might want to rename this for consistency (buildCXX
).
…s don't get screwy when, eg, cross-compiling from Linux to Windows
…d) to `buildCXX`for consistency with Meson's own nomenclature
0708039
to
4ff801c
Compare
Both items should now be addressed - with thanks for spotting and raising them |
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.
lgtm 🐱
This PR adds a variable to the build system to denote when the command line parser has been enabled. This is to allow dependent builds to detect this condition and depend on the command line parser.
Additionally, this PR sorts a long-standing issue with the host vs target (native, non-native) builds where state from one would leak into the other in potentially bad ways and cause a malodorous mess if cross-compiling to Windows from Linux (for example).