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 @@ -3526,11 +3526,13 @@ impl Step for TestFloatParse {
35263526
35273527 fn run ( self , builder : & Builder < ' _ > ) {
35283528 let bootstrap_host = builder. config . build ;
3529- let compiler = builder. compiler ( 0 , bootstrap_host) ;
3529+ let compiler = builder. compiler ( builder . top_stage , bootstrap_host) ;
35303530 let path = self . path . to_str ( ) . unwrap ( ) ;
35313531 let crate_name = self . path . components ( ) . last ( ) . unwrap ( ) . as_os_str ( ) . to_str ( ) . unwrap ( ) ;
35323532
3533- builder. ensure ( compile:: Std :: new ( compiler, self . host ) ) ;
3533+ if !builder. download_rustc ( ) {
3534+ builder. ensure ( compile:: Std :: new ( compiler, self . host ) ) ;
3535+ }
35343536
35353537 // Run any unit tests in the crate
35363538 let cargo_test = tool:: prepare_tool_cargo (
You can’t perform that action at this time.
0 commit comments