@@ -1381,40 +1381,7 @@ test!(Pretty {
1381
1381
only_hosts: true ,
1382
1382
} ) ;
1383
1383
1384
- /// Special-handling is needed for `run-make`, so don't use `test!` for defining `RunMake`
1385
- /// tests.
1386
- #[ derive( Debug , Copy , Clone , PartialEq , Eq , Hash ) ]
1387
- pub struct RunMake {
1388
- pub compiler : Compiler ,
1389
- pub target : TargetSelection ,
1390
- }
1391
-
1392
- impl Step for RunMake {
1393
- type Output = ( ) ;
1394
- const DEFAULT : bool = true ;
1395
- const ONLY_HOSTS : bool = false ;
1396
-
1397
- fn should_run ( run : ShouldRun < ' _ > ) -> ShouldRun < ' _ > {
1398
- run. suite_path ( "tests/run-make" )
1399
- }
1400
-
1401
- fn make_run ( run : RunConfig < ' _ > ) {
1402
- let compiler = run. builder . compiler ( run. builder . top_stage , run. build_triple ( ) ) ;
1403
- run. builder . ensure ( RunMakeSupport { compiler, target : run. build_triple ( ) } ) ;
1404
- run. builder . ensure ( RunMake { compiler, target : run. target } ) ;
1405
- }
1406
-
1407
- fn run ( self , builder : & Builder < ' _ > ) {
1408
- builder. ensure ( Compiletest {
1409
- compiler : self . compiler ,
1410
- target : self . target ,
1411
- mode : "run-make" ,
1412
- suite : "run-make" ,
1413
- path : "tests/run-make" ,
1414
- compare_mode : None ,
1415
- } ) ;
1416
- }
1417
- }
1384
+ test ! ( RunMake { path: "tests/run-make" , mode: "run-make" , suite: "run-make" , default : true } ) ;
1418
1385
1419
1386
test ! ( Assembly { path: "tests/assembly" , mode: "assembly" , suite: "assembly" , default : true } ) ;
1420
1387
@@ -1657,6 +1624,9 @@ NOTE: if you're sure you want to do this, please open an issue as to why. In the
1657
1624
host : target,
1658
1625
} ) ;
1659
1626
}
1627
+ if suite == "run-make" {
1628
+ builder. tool_exe ( Tool :: RunMakeSupport ) ;
1629
+ }
1660
1630
1661
1631
// Also provide `rust_test_helpers` for the host.
1662
1632
builder. ensure ( TestHelpers { target : compiler. host } ) ;
0 commit comments