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