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.
1 parent a5e2eca commit c0156f1Copy full SHA for c0156f1
src/bootstrap/builder.rs
@@ -2043,6 +2043,13 @@ impl<'a> Builder<'a> {
2043
rustflags.arg("-Zinline-mir");
2044
}
2045
2046
+ // set rustc args passed from command line
2047
+ let rustc_args =
2048
+ self.config.cmd.rustc_args().iter().map(|s| s.to_string()).collect::<Vec<_>>();
2049
+ if !rustc_args.is_empty() {
2050
+ cargo.env("RUSTFLAGS", &rustc_args.join(" "));
2051
+ }
2052
+
2053
Cargo { command: cargo, rustflags, rustdocflags, allow_features }
2054
2055
0 commit comments