mirror of
https://github.com/rust-lang/rust.git
synced 2026-03-23 21:06:15 +00:00
pass RUSTC_HOST_FLAGS at once without the for loop
Signed-off-by: onur-ozkan <work@onurozkan.dev>
This commit is contained in:
@@ -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(' '));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user