File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -304,12 +304,14 @@ fn add_exe_suffix(input: String, target: &TargetTriple) -> String {
304
304
}
305
305
306
306
fn wrapped_rustc_command ( rustc_wrappers : & [ PathBuf ] , rustc_binary : & Path ) -> Command {
307
- let args: Vec < & Path > =
308
- rustc_wrappers. iter ( ) . map ( PathBuf :: as_path) . chain ( [ rustc_binary] . into_iter ( ) ) . collect ( ) ;
309
- let ( exe, args) = args. split_first ( ) . expect ( "unable to create rustc command" ) ;
307
+ let mut args = rustc_wrappers. iter ( ) . map ( PathBuf :: as_path) . chain ( [ rustc_binary] . into_iter ( ) ) ;
310
308
309
+ let exe = args. next ( ) . expect ( "unable to create rustc command" ) ;
311
310
let mut command = Command :: new ( exe) ;
312
- command. args ( args) ;
311
+ for arg in args {
312
+ command. arg ( arg) ;
313
+ }
314
+
313
315
command
314
316
}
315
317
You can’t perform that action at this time.
0 commit comments