File tree Expand file tree Collapse file tree 1 file changed +2
-16
lines changed
src/bootstrap/src/core/build_steps Expand file tree Collapse file tree 1 file changed +2
-16
lines changed Original file line number Diff line number Diff line change @@ -3660,18 +3660,6 @@ impl Step for CodegenGCC {
36603660 }
36613661}
36623662
3663- /// Get a build compiler that can be used to test the standard library (i.e. its stage will
3664- /// correspond to the stage that we want to test).
3665- fn get_test_build_compiler_for_std ( builder : & Builder < ' _ > ) -> Compiler {
3666- if builder. top_stage == 0 {
3667- eprintln ! (
3668- "ERROR: cannot run tests on stage 0. `build.compiletest-allow-stage0` only works for compiletest test suites."
3669- ) ;
3670- exit ! ( 1 ) ;
3671- }
3672- builder. compiler ( builder. top_stage , builder. host_target )
3673- }
3674-
36753663/// Test step that does two things:
36763664/// - Runs `cargo test` for the `src/tools/test-float-parse` tool.
36773665/// - Invokes the `test-float-parse` tool to test the standard library's
@@ -3701,10 +3689,8 @@ impl Step for TestFloatParse {
37013689 }
37023690
37033691 fn make_run ( run : RunConfig < ' _ > ) {
3704- run. builder . ensure ( Self {
3705- build_compiler : get_test_build_compiler_for_std ( run. builder ) ,
3706- target : run. target ,
3707- } ) ;
3692+ run. builder
3693+ . ensure ( Self { build_compiler : get_compiler_to_test ( run. builder ) , target : run. target } ) ;
37083694 }
37093695
37103696 fn run ( self , builder : & Builder < ' _ > ) {
You can’t perform that action at this time.
0 commit comments