Skip to content

Commit

Permalink
Rollup merge of #132365 - onur-ozkan:less-rustc-overhead, r=Kobzol
Browse files Browse the repository at this point in the history
pass `RUSTC_HOST_FLAGS` at once without the for loop

For obvious reasons...
  • Loading branch information
matthiaskrgr authored Oct 31, 2024
2 parents e228e31 + 4b52bbc commit 2b93bf6
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 2b93bf6

Please sign in to comment.