Skip to content

Commit 4b52bbc

Browse files
committed
pass RUSTC_HOST_FLAGS at once without the for loop
Signed-off-by: onur-ozkan <[email protected]>
1 parent 298c746 commit 4b52bbc

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)