@@ -1362,40 +1362,7 @@ test!(Pretty {
1362
1362
only_hosts: true ,
1363
1363
} ) ;
1364
1364
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 } ) ;
1399
1366
1400
1367
test ! ( Assembly { path: "tests/assembly" , mode: "assembly" , suite: "assembly" , default : true } ) ;
1401
1368
@@ -1638,6 +1605,9 @@ NOTE: if you're sure you want to do this, please open an issue as to why. In the
1638
1605
host : target,
1639
1606
} ) ;
1640
1607
}
1608
+ if suite == "run-make" {
1609
+ builder. tool_exe ( Tool :: RunMakeSupport ) ;
1610
+ }
1641
1611
1642
1612
// Also provide `rust_test_helpers` for the host.
1643
1613
builder. ensure ( TestHelpers { target : compiler. host } ) ;
0 commit comments