From 4b52bbcf03fc5ab00d4c8d3f7096a74f78eabcbb Mon Sep 17 00:00:00 2001 From: onur-ozkan Date: Wed, 30 Oct 2024 19:35:56 +0300 Subject: [PATCH] pass `RUSTC_HOST_FLAGS` at once without the for loop Signed-off-by: onur-ozkan --- src/bootstrap/src/bin/rustc.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/bootstrap/src/bin/rustc.rs b/src/bootstrap/src/bin/rustc.rs index 18f5a1a58db93..88595ff7e5198 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(' ')); } }