File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -200,12 +200,14 @@ than building it.
200
200
. map ( |p| cmd_finder. must_have ( p) )
201
201
. or_else ( || cmd_finder. maybe_have ( "reuse" ) ) ;
202
202
203
- let stage0_supported_target_list: HashSet < String > = crate :: utils:: helpers:: output (
204
- command ( & build. config . initial_rustc ) . args ( [ "--print" , "target-list" ] ) . as_command_mut ( ) ,
205
- )
206
- . lines ( )
207
- . map ( |s| s. to_string ( ) )
208
- . collect ( ) ;
203
+ let stage0_supported_target_list: HashSet < String > = command ( & build. config . initial_rustc )
204
+ . args ( [ "--print" , "target-list" ] )
205
+ . run_always ( )
206
+ . run_capture_stdout ( & build)
207
+ . stdout ( )
208
+ . lines ( )
209
+ . map ( |s| s. to_string ( ) )
210
+ . collect ( ) ;
209
211
210
212
// Compiler tools like `cc` and `ar` are not configured for cross-targets on certain subcommands
211
213
// because they are not needed.
You can’t perform that action at this time.
0 commit comments