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

Do not clobber user environment variables in Meson script #1255

Merged

Conversation

allsey87
Copy link
Contributor

@allsey87 allsey87 commented Aug 9, 2024

The logic for generating the Meson script conditionally exports some variables such as LDFLAGS, CFLAGS, and CXXFLAGS, ignoring what the user may have specified using the env attribute of the meson rule.

Prepend the user specified flags at the end when exporting these variables.

@jsharpe jsharpe merged commit 2375e1d into bazel-contrib:main Aug 10, 2024
2 checks passed
@allsey87 allsey87 deleted the fix_meson_user_env_vars branch August 12, 2024 08:51
jsharpe pushed a commit to jsharpe/rules_foreign_cc that referenced this pull request Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants