@@ -1393,40 +1393,7 @@ test!(Pretty {
13931393 only_hosts: true ,
13941394} ) ;
13951395
1396- /// Special-handling is needed for `run-make`, so don't use `test!` for defining `RunMake`
1397- /// tests.
1398- #[ derive( Debug , Copy , Clone , PartialEq , Eq , Hash ) ]
1399- pub struct RunMake {
1400- pub compiler : Compiler ,
1401- pub target : TargetSelection ,
1402- }
1403-
1404- impl Step for RunMake {
1405- type Output = ( ) ;
1406- const DEFAULT : bool = true ;
1407- const ONLY_HOSTS : bool = false ;
1408-
1409- fn should_run ( run : ShouldRun < ' _ > ) -> ShouldRun < ' _ > {
1410- run. suite_path ( "tests/run-make" )
1411- }
1412-
1413- fn make_run ( run : RunConfig < ' _ > ) {
1414- let compiler = run. builder . compiler ( run. builder . top_stage , run. build_triple ( ) ) ;
1415- run. builder . ensure ( RunMakeSupport { compiler, target : run. build_triple ( ) } ) ;
1416- run. builder . ensure ( RunMake { compiler, target : run. target } ) ;
1417- }
1418-
1419- fn run ( self , builder : & Builder < ' _ > ) {
1420- builder. ensure ( Compiletest {
1421- compiler : self . compiler ,
1422- target : self . target ,
1423- mode : "run-make" ,
1424- suite : "run-make" ,
1425- path : "tests/run-make" ,
1426- compare_mode : None ,
1427- } ) ;
1428- }
1429- }
1396+ test ! ( RunMake { path: "tests/run-make" , mode: "run-make" , suite: "run-make" , default : true } ) ;
14301397
14311398test ! ( Assembly { path: "tests/assembly" , mode: "assembly" , suite: "assembly" , default : true } ) ;
14321399
@@ -1669,6 +1636,9 @@ NOTE: if you're sure you want to do this, please open an issue as to why. In the
16691636 host : target,
16701637 } ) ;
16711638 }
1639+ if suite == "run-make" {
1640+ builder. tool_exe ( Tool :: RunMakeSupport ) ;
1641+ }
16721642
16731643 // Also provide `rust_test_helpers` for the host.
16741644 builder. ensure ( TestHelpers { target : compiler. host } ) ;
0 commit comments