Skip to content

Commit

Permalink
Unrolled build for rust-lang#132365
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#132365 - onur-ozkan:less-rustc-overhead, r=Kobzol

pass `RUSTC_HOST_FLAGS` at once without the for loop

For obvious reasons...
  • Loading branch information
rust-timer authored Oct 31, 2024
2 parents c8b8378 + 4b52bbc commit f0253f6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/bootstrap/src/bin/rustc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,7 @@ fn main() {
// Find any host flags that were passed by bootstrap.
// The flags are stored in a RUSTC_HOST_FLAGS variable, separated by spaces.
if let Ok(flags) = std::env::var("RUSTC_HOST_FLAGS") {
for flag in flags.split(' ') {
cmd.arg(flag);
}
cmd.args(flags.split(' '));
}
}

Expand Down

0 comments on commit f0253f6

Please sign in to comment.