@@ -1362,40 +1362,7 @@ test!(Pretty {
13621362 only_hosts: true ,
13631363} ) ;
13641364
1365- /// Special-handling is needed for `run-make`, so don't use `test!` for defining `RunMake`
1366- /// tests.
1367- #[ derive( Debug , Copy , Clone , PartialEq , Eq , Hash ) ]
1368- pub struct RunMake {
1369- pub compiler : Compiler ,
1370- pub target : TargetSelection ,
1371- }
1372-
1373- impl Step for RunMake {
1374- type Output = ( ) ;
1375- const DEFAULT : bool = true ;
1376- const ONLY_HOSTS : bool = false ;
1377-
1378- fn should_run ( run : ShouldRun < ' _ > ) -> ShouldRun < ' _ > {
1379- run. suite_path ( "tests/run-make" )
1380- }
1381-
1382- fn make_run ( run : RunConfig < ' _ > ) {
1383- let compiler = run. builder . compiler ( run. builder . top_stage , run. build_triple ( ) ) ;
1384- run. builder . ensure ( RunMakeSupport { compiler, target : run. build_triple ( ) } ) ;
1385- run. builder . ensure ( RunMake { compiler, target : run. target } ) ;
1386- }
1387-
1388- fn run ( self , builder : & Builder < ' _ > ) {
1389- builder. ensure ( Compiletest {
1390- compiler : self . compiler ,
1391- target : self . target ,
1392- mode : "run-make" ,
1393- suite : "run-make" ,
1394- path : "tests/run-make" ,
1395- compare_mode : None ,
1396- } ) ;
1397- }
1398- }
1365+ test ! ( RunMake { path: "tests/run-make" , mode: "run-make" , suite: "run-make" , default : true } ) ;
13991366
14001367test ! ( Assembly { path: "tests/assembly" , mode: "assembly" , suite: "assembly" , default : true } ) ;
14011368
@@ -1638,6 +1605,9 @@ NOTE: if you're sure you want to do this, please open an issue as to why. In the
16381605 host : target,
16391606 } ) ;
16401607 }
1608+ if suite == "run-make" {
1609+ builder. tool_exe ( Tool :: RunMakeSupport ) ;
1610+ }
16411611
16421612 // Also provide `rust_test_helpers` for the host.
16431613 builder. ensure ( TestHelpers { target : compiler. host } ) ;
0 commit comments