pass RUSTC_HOST_FLAGS at once without the for loop

Signed-off-by: onur-ozkan <work@onurozkan.dev>
This commit is contained in:
onur-ozkan 2024-10-30 19:35:56 +03:00
parent 298c7462c3
commit 4b52bbcf03

View File

@ -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(' '));
}
}