Fix rustc-args passing issue in bootstrap
This commit is contained in:
parent
a5e2eca40e
commit
c0156f1b2c
@ -2043,6 +2043,13 @@ impl<'a> Builder<'a> {
|
|||||||
rustflags.arg("-Zinline-mir");
|
rustflags.arg("-Zinline-mir");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// set rustc args passed from command line
|
||||||
|
let rustc_args =
|
||||||
|
self.config.cmd.rustc_args().iter().map(|s| s.to_string()).collect::<Vec<_>>();
|
||||||
|
if !rustc_args.is_empty() {
|
||||||
|
cargo.env("RUSTFLAGS", &rustc_args.join(" "));
|
||||||
|
}
|
||||||
|
|
||||||
Cargo { command: cargo, rustflags, rustdocflags, allow_features }
|
Cargo { command: cargo, rustflags, rustdocflags, allow_features }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user