@@ -1648,16 +1648,17 @@ NOTE: if you're sure you want to do this, please open an issue as to why. In the
1648
1648
// bootstrap compiler.
1649
1649
// NOTE: Only stage 1 is special cased because we need the rustc_private artifacts to match the
1650
1650
// running compiler in stage 2 when plugins run.
1651
- let stage_id = if suite == "ui-fulldeps" && compiler. stage == 1 {
1652
- // At stage 0 (stage - 1) we are using the beta compiler. Using `self.target` can lead finding
1653
- // an incorrect compiler path on cross-targets, as the stage 0 beta compiler is always equal
1654
- // to `build.build` in the configuration.
1651
+ let ( stage , stage_id) = if suite == "ui-fulldeps" && compiler. stage == 1 {
1652
+ // At stage 0 (stage - 1) we are using the beta compiler. Using `self.target` can lead
1653
+ // finding an incorrect compiler path on cross-targets, as the stage 0 beta compiler is
1654
+ // always equal to `build.build` in the configuration.
1655
1655
let build = builder. build . build ;
1656
-
1657
1656
compiler = builder. compiler ( compiler. stage - 1 , build) ;
1658
- format ! ( "stage{}-{}" , compiler. stage + 1 , build)
1657
+ let test_stage = compiler. stage + 1 ;
1658
+ ( test_stage, format ! ( "stage{}-{}" , test_stage, build) )
1659
1659
} else {
1660
- format ! ( "stage{}-{}" , compiler. stage, target)
1660
+ let stage = compiler. stage ;
1661
+ ( stage, format ! ( "stage{}-{}" , stage, target) )
1661
1662
} ;
1662
1663
1663
1664
if suite. ends_with ( "fulldeps" ) {
@@ -1699,6 +1700,9 @@ NOTE: if you're sure you want to do this, please open an issue as to why. In the
1699
1700
// compiletest currently has... a lot of arguments, so let's just pass all
1700
1701
// of them!
1701
1702
1703
+ cmd. arg ( "--stage" ) . arg ( stage. to_string ( ) ) ;
1704
+ cmd. arg ( "--stage-id" ) . arg ( stage_id) ;
1705
+
1702
1706
cmd. arg ( "--compile-lib-path" ) . arg ( builder. rustc_libdir ( compiler) ) ;
1703
1707
cmd. arg ( "--run-lib-path" ) . arg ( builder. sysroot_target_libdir ( compiler, target) ) ;
1704
1708
cmd. arg ( "--rustc-path" ) . arg ( builder. rustc ( compiler) ) ;
@@ -1767,8 +1771,9 @@ NOTE: if you're sure you want to do this, please open an issue as to why. In the
1767
1771
} else {
1768
1772
builder. sysroot ( compiler) . to_path_buf ( )
1769
1773
} ;
1774
+
1770
1775
cmd. arg ( "--sysroot-base" ) . arg ( sysroot) ;
1771
- cmd . arg ( "--stage-id" ) . arg ( stage_id ) ;
1776
+
1772
1777
cmd. arg ( "--suite" ) . arg ( suite) ;
1773
1778
cmd. arg ( "--mode" ) . arg ( mode) ;
1774
1779
cmd. arg ( "--target" ) . arg ( target. rustc_target_arg ( ) ) ;
0 commit comments