@@ -342,31 +342,29 @@ mod dist {
342
342
}
343
343
344
344
#[ test]
345
- fn dist_with_target_flag ( ) {
346
- let mut config = configure ( & [ "B" ] , & [ "C" ] ) ;
347
- config. skip_only_host_steps = true ; // as-if --target=C was passed
345
+ fn dist_with_empty_host ( ) {
346
+ let mut config = configure ( & [ ] , & [ "C" ] ) ;
347
+ config. skip_only_host_steps = true ;
348
348
let build = Build :: new ( config) ;
349
349
let mut builder = Builder :: new ( & build) ;
350
350
builder. run_step_descriptions ( & Builder :: get_step_descriptions ( Kind :: Dist ) , & [ ] ) ;
351
351
352
352
let a = TargetSelection :: from_user ( "A" ) ;
353
- let b = TargetSelection :: from_user ( "B" ) ;
354
353
let c = TargetSelection :: from_user ( "C" ) ;
355
354
356
355
assert_eq ! (
357
356
first( builder. cache. all:: <dist:: Docs >( ) ) ,
358
- & [ dist:: Docs { host: a } , dist:: Docs { host: b } , dist :: Docs { host : c } , ]
357
+ & [ dist:: Docs { host: a } , dist:: Docs { host: c } , ]
359
358
) ;
360
359
assert_eq ! (
361
360
first( builder. cache. all:: <dist:: Mingw >( ) ) ,
362
- & [ dist:: Mingw { host: a } , dist:: Mingw { host: b } , dist :: Mingw { host : c } , ]
361
+ & [ dist:: Mingw { host: a } , dist:: Mingw { host: c } , ]
363
362
) ;
364
363
assert_eq ! ( first( builder. cache. all:: <dist:: Rustc >( ) ) , & [ ] ) ;
365
364
assert_eq ! (
366
365
first( builder. cache. all:: <dist:: Std >( ) ) ,
367
366
& [
368
367
dist:: Std { compiler: Compiler { host: a, stage: 1 } , target: a } ,
369
- dist:: Std { compiler: Compiler { host: a, stage: 1 } , target: b } ,
370
368
dist:: Std { compiler: Compiler { host: a, stage: 2 } , target: c } ,
371
369
]
372
370
) ;
@@ -464,15 +462,14 @@ mod dist {
464
462
}
465
463
466
464
#[ test]
467
- fn build_with_target_flag ( ) {
468
- let mut config = configure ( & [ "B" ] , & [ "C" ] ) ;
465
+ fn build_with_empty_host ( ) {
466
+ let mut config = configure ( & [ ] , & [ "C" ] ) ;
469
467
config. skip_only_host_steps = true ;
470
468
let build = Build :: new ( config) ;
471
469
let mut builder = Builder :: new ( & build) ;
472
470
builder. run_step_descriptions ( & Builder :: get_step_descriptions ( Kind :: Build ) , & [ ] ) ;
473
471
474
472
let a = TargetSelection :: from_user ( "A" ) ;
475
- let b = TargetSelection :: from_user ( "B" ) ;
476
473
let c = TargetSelection :: from_user ( "C" ) ;
477
474
478
475
assert_eq ! (
@@ -481,8 +478,6 @@ mod dist {
481
478
compile:: Std { compiler: Compiler { host: a, stage: 0 } , target: a } ,
482
479
compile:: Std { compiler: Compiler { host: a, stage: 1 } , target: a } ,
483
480
compile:: Std { compiler: Compiler { host: a, stage: 2 } , target: a } ,
484
- compile:: Std { compiler: Compiler { host: a, stage: 1 } , target: b } ,
485
- compile:: Std { compiler: Compiler { host: a, stage: 2 } , target: b } ,
486
481
compile:: Std { compiler: Compiler { host: a, stage: 2 } , target: c } ,
487
482
]
488
483
) ;
0 commit comments