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

Combine all rustflags into cargo --config arg #278

Merged
merged 1 commit into from
Jul 6, 2024
Merged

Combine all rustflags into cargo --config arg #278

merged 1 commit into from
Jul 6, 2024

Conversation

dtolnay
Copy link
Owner

@dtolnay dtolnay commented Jul 6, 2024

The --verbose flag from #270 is not being applied consistently in all environments because of interference with the RUSTFLAGS environment variable, which takes precedence (https://doc.rust-lang.org/1.79.0/cargo/reference/config.html#buildrustflags).

This PR consolidates all 3 previously used sources of flags (.cargo/config.toml, $RUSTFLAGS, --config=build.rustflags) into just using --config=build.rustflags.

@dtolnay dtolnay merged commit 207b0a5 into master Jul 6, 2024
20 checks passed
@dtolnay dtolnay deleted the rustflags branch July 6, 2024 19:46
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.

1 participant