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 {
304304}
305305
306306fn 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 ( ) ) ;
310308
309+ let exe = args. next ( ) . expect ( "unable to create rustc command" ) ;
311310 let mut command = Command :: new ( exe) ;
312- command. args ( args) ;
311+ for arg in args {
312+ command. arg ( arg) ;
313+ }
314+
313315 command
314316}
315317
You can’t perform that action at this time.
0 commit comments