-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Environment variable RUSTFLAGS not set inside build.rs script since Rust 1.55.0 #10111
Comments
Thanks for the report, and sorry about the problem you've run into. This was changed in #9601, and I asked for clarification over there. But I'm also wondering, is it feasible for you to use |
Unfortunately, this change of the Cargo behavior affects 3rd party crates, which rely on So, this is not a bug? Is this behavior expected? |
Following up from #9601 (comment) I'll echo what jonhoo said and otherwise add that other methods of configuring flags, e.g. |
We added it to the Changelog, both in the release where the change happened and in the release where you noticed it. |
39: Fix detection of `-Z assume-incomplete-release` r=taiki-e a=taiki-e Since 1.55, cargo pass `CARGO_ENCODED_RUSTFLAGS` instead of `RUSTFLAGS` to build-scripts: rust-lang/cargo#10111 Co-authored-by: Taiki Endo <[email protected]>
Problem
Environment variable RUSTFLAGS not set inside build.rs script since Rust 1.55.0
Steps
Install Rust Stable 1.54 and 1.55
Clone Minimal Reproducible Example
Build with Cargo and Rust Stable 1.54.0
Output:
Cargo clean
Build with Cargo and Rust Stable 1.55.0
Output:
It looks like
RUSTFLAGS
environment variable is not available withinbuild.rs
script since1.55.0
and I can't find any info related to this new behavior in the changelog.Possible Solution(s)
No response
Notes
No response
Version
No response
The text was updated successfully, but these errors were encountered: