pass RUSTC_HOST_FLAGS
at once without the for loop
Signed-off-by: onur-ozkan <work@onurozkan.dev>
This commit is contained in:
parent
298c7462c3
commit
4b52bbcf03
@ -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(' '));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user