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 {
3526
3526
3527
3527
fn run ( self , builder : & Builder < ' _ > ) {
3528
3528
let bootstrap_host = builder. config . build ;
3529
- let compiler = builder. compiler ( 0 , bootstrap_host) ;
3529
+ let compiler = builder. compiler ( builder . top_stage , bootstrap_host) ;
3530
3530
let path = self . path . to_str ( ) . unwrap ( ) ;
3531
3531
let crate_name = self . path . components ( ) . last ( ) . unwrap ( ) . as_os_str ( ) . to_str ( ) . unwrap ( ) ;
3532
3532
3533
- builder. ensure ( compile:: Std :: new ( compiler, self . host ) ) ;
3533
+ if !builder. download_rustc ( ) {
3534
+ builder. ensure ( compile:: Std :: new ( compiler, self . host ) ) ;
3535
+ }
3534
3536
3535
3537
// Run any unit tests in the crate
3536
3538
let cargo_test = tool:: prepare_tool_cargo (
You can’t perform that action at this time.
0 commit comments