-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
Remove most of the logic in fake rustc once -Ztarget-applies-to-host=true
lands
#94556
Comments
Ah, so, unfortunately, Also cc @alexcrichton since this may be a useful real-world example of where the current behavior falls short. |
@jonhoo is the difference between the three modes documented somewhere? I don't have any clear idea what they do. |
The unstable docs should explain exactly what the feature does (and doesn't) do. The challenge is that See rust-lang/cargo#10462 for the new envvar proposal though |
rust-lang/cargo#10395 made it possible to apply RUSTFLAGS to build scripts and proc-macros. Bootstrap currently special-cases this in fake rustc:
rust/src/bootstrap/bin/rustc.rs
Lines 110 to 135 in 06460fe
We should switch to using
-Ztarget-applies-to-host=true
on the next cargo update.cc @Mark-Simulacrum @ehuss @jonhoo (thank you again @jonhoo for fixing this! ❤️)
@rustbot label: +A-rustbuild +C-enhancement
The text was updated successfully, but these errors were encountered: