Skip to content

Commit 2b93bf6

Browse files
authored
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...
2 parents e228e31 + 4b52bbc commit 2b93bf6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/bootstrap/src/bin/rustc.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,7 @@ fn main() {
175175
// Find any host flags that were passed by bootstrap.
176176
// The flags are stored in a RUSTC_HOST_FLAGS variable, separated by spaces.
177177
if let Ok(flags) = std::env::var("RUSTC_HOST_FLAGS") {
178-
for flag in flags.split(' ') {
179-
cmd.arg(flag);
180-
}
178+
cmd.args(flags.split(' '));
181179
}
182180
}
183181

0 commit comments

Comments
 (0)