Skip to content

Combine all rustflags into cargo --config arg#278

Merged
dtolnay merged 1 commit intomasterfrom
rustflags
Jul 6, 2024
Merged

Combine all rustflags into cargo --config arg#278
dtolnay merged 1 commit intomasterfrom
rustflags

Conversation

@dtolnay
Copy link
Copy Markdown
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
@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