Skip to content
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

Merged
merged 4 commits into from
Aug 31, 2023

Conversation

dragonmux
Copy link
Member

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).

…build to signal if the command line parser part has been enabled
@dragonmux dragonmux added bug Something isn't working enhancement New feature or request labels Aug 31, 2023
@codecov
Copy link

codecov bot commented Aug 31, 2023

Codecov Report

Merging #78 (4ff801c) into main (64f13bf) will not change coverage.
The diff coverage is n/a.

@@           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

Copy link
Collaborator

@amyspark amyspark left a 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 Show resolved Hide resolved
impl/meson.build Outdated
@@ -205,6 +210,17 @@ endif
if meson.is_cross_build()
hostCXX = meson.get_compiler('cpp', native: true)
Copy link
Collaborator

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
@dragonmux dragonmux force-pushed the feature/command-line-parser-enabled-var branch from 0708039 to 4ff801c Compare August 31, 2023 11:30
@dragonmux
Copy link
Member Author

Both items should now be addressed - with thanks for spotting and raising them

Copy link
Member

@lethalbit lethalbit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm 🐱

@dragonmux dragonmux merged commit 4ff801c into main Aug 31, 2023
167 checks passed
@dragonmux dragonmux deleted the feature/command-line-parser-enabled-var branch August 31, 2023 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants