File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/bootstrap/src/core/build_steps Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -3529,11 +3529,13 @@ impl Step for TestFloatParse {
35293529
35303530 fn run ( self , builder : & Builder < ' _ > ) {
35313531 let bootstrap_host = builder. config . build ;
3532- let compiler = builder. compiler ( 0 , bootstrap_host) ;
3532+ let compiler = builder. compiler ( builder . top_stage , bootstrap_host) ;
35333533 let path = self . path . to_str ( ) . unwrap ( ) ;
35343534 let crate_name = self . path . components ( ) . last ( ) . unwrap ( ) . as_os_str ( ) . to_str ( ) . unwrap ( ) ;
35353535
3536- builder. ensure ( compile:: Std :: new ( compiler, self . host ) ) ;
3536+ if !builder. download_rustc ( ) {
3537+ builder. ensure ( compile:: Std :: new ( compiler, self . host ) ) ;
3538+ }
35373539
35383540 // Run any unit tests in the crate
35393541 let cargo_test = tool:: prepare_tool_cargo (
You can’t perform that action at this time.
0 commit comments