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 90d28ec commit 93a3b29Copy full SHA for 93a3b29
src/bootstrap/rustc.rs
@@ -61,6 +61,9 @@ fn main() {
61
root.push("/lib");
62
cmd.arg("-L").arg(&root);
63
}
64
+ if let Ok(s) = env::var("RUSTC_FLAGS") {
65
+ cmd.args(&s.split(" ").filter(|s| !s.is_empty()).collect::<Vec<_>>());
66
+ }
67
68
69
// Set various options from config.toml to configure how we're building
@@ -79,9 +82,6 @@ fn main() {
79
82
if let Ok(s) = env::var("RUSTC_CODEGEN_UNITS") {
80
83
cmd.arg("-C").arg(format!("codegen-units={}", s));
81
84
- if let Ok(s) = env::var("RUSTC_FLAGS") {
- cmd.args(&s.split(" ").filter(|s| !s.is_empty()).collect::<Vec<_>>());
- }
85
86
// Actually run the compiler!
87
std::process::exit(match cmd.status() {
0 commit comments