Rollup merge of #132365 - onur-ozkan:less-rustc-overhead, r=Kobzol

pass `RUSTC_HOST_FLAGS` at once without the for loop

For obvious reasons...
This commit is contained in:
Matthias Krüger 2024-10-31 06:11:57 +01:00 committed by GitHub
commit 2b93bf60ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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