From 6ea108bae3358ffee78fcdfb4b442dd8d81b29b4 Mon Sep 17 00:00:00 2001 From: Afonso Bordado Date: Sat, 30 Jul 2022 21:08:21 +0100 Subject: [PATCH] Split flags whitespace This is probably the wrong way to do this... --- build_system/tests.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/build_system/tests.rs b/build_system/tests.rs index bc13066b020..e4a776259c0 100644 --- a/build_system/tests.rs +++ b/build_system/tests.rs @@ -417,9 +417,7 @@ impl TestRunner { rustc_clif.push(get_wrapper_file_name("rustc-clif", "bin", &self.host_triple)); let mut cmd = Command::new(rustc_clif); - if !self.rust_flags.is_empty() { - cmd.arg(&self.rust_flags); - } + cmd.args(self.rust_flags.split_whitespace()); cmd.arg("-L"); cmd.arg(format!("crate={}", self.out_dir.display())); cmd.arg("--out-dir");