We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
RUSTFLAGS
rustflags
bootstrap.toml
1 parent ddd2347 commit db82e40Copy full SHA for db82e40
src/bootstrap/src/core/builder/cargo.rs
@@ -25,9 +25,7 @@ struct Rustflags(String, TargetSelection);
25
26
impl Rustflags {
27
fn new(target: TargetSelection) -> Rustflags {
28
- let mut ret = Rustflags(String::new(), target);
29
- ret.propagate_cargo_env("RUSTFLAGS");
30
- ret
+ Rustflags(String::new(), target)
31
}
32
33
/// By default, cargo will pick up on various variables in the environment. However, bootstrap
@@ -606,6 +604,8 @@ impl Builder<'_> {
606
604
rustflags.arg(arg);
607
605
608
+ rustflags.propagate_cargo_env("RUSTFLAGS");
+
609
if build_compiler_stage != 0 {
610
if let Ok(s) = env::var("CARGOFLAGS_NOT_BOOTSTRAP") {
611
cargo.args(s.split_whitespace());
0 commit comments