diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-10-31 06:11:57 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-31 06:11:57 +0100 |
| commit | 2b93bf60eed03e05b595224b38557f8f170a3ee9 (patch) | |
| tree | e2cd44c200bc95be7dea18a25648ba282b3c4272 | |
| parent | e228e3129370be62c14932c7ab9a788282c6efa4 (diff) | |
| parent | 4b52bbcf03fc5ab00d4c8d3f7096a74f78eabcbb (diff) | |
| download | rust-2b93bf60eed03e05b595224b38557f8f170a3ee9.tar.gz rust-2b93bf60eed03e05b595224b38557f8f170a3ee9.zip | |
Rollup merge of #132365 - onur-ozkan:less-rustc-overhead, r=Kobzol
pass `RUSTC_HOST_FLAGS` at once without the for loop For obvious reasons...
| -rw-r--r-- | src/bootstrap/src/bin/rustc.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/bootstrap/src/bin/rustc.rs b/src/bootstrap/src/bin/rustc.rs index 18f5a1a58db..88595ff7e51 100644 --- a/src/bootstrap/src/bin/rustc.rs +++ b/src/bootstrap/src/bin/rustc.rs @@ -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(' ')); } } |
