@@ -14,9 +14,8 @@ use crate::core::build_steps::synthetic_targets::MirOptPanicAbortSyntheticTarget
14
14
use crate :: core:: build_steps:: tool:: { self , SourceType , Tool } ;
15
15
use crate :: core:: build_steps:: toolstate:: ToolState ;
16
16
use crate :: core:: build_steps:: { compile, dist, llvm} ;
17
- use crate :: core:: builder;
18
17
use crate :: core:: builder:: {
19
- crate_description, Builder , Compiler , Kind , RunConfig , ShouldRun , Step ,
18
+ self , crate_description, Alias , Builder , Compiler , Kind , RunConfig , ShouldRun , Step ,
20
19
} ;
21
20
use crate :: core:: config:: flags:: { get_completion, Subcommand } ;
22
21
use crate :: core:: config:: TargetSelection ;
@@ -2435,18 +2434,14 @@ impl Step for CrateLibrustc {
2435
2434
const ONLY_HOSTS : bool = true ;
2436
2435
2437
2436
fn should_run ( run : ShouldRun < ' _ > ) -> ShouldRun < ' _ > {
2438
- run. crate_or_deps ( "rustc-main" )
2437
+ run. crate_or_deps ( "rustc-main" ) . path ( "compiler" )
2439
2438
}
2440
2439
2441
2440
fn make_run ( run : RunConfig < ' _ > ) {
2442
2441
let builder = run. builder ;
2443
2442
let host = run. build_triple ( ) ;
2444
2443
let compiler = builder. compiler_for ( builder. top_stage , host, host) ;
2445
- let crates = run
2446
- . paths
2447
- . iter ( )
2448
- . map ( |p| builder. crate_paths [ & p. assert_single_path ( ) . path ] . clone ( ) )
2449
- . collect ( ) ;
2444
+ let crates = run. make_run_crates ( Alias :: Compiler ) ;
2450
2445
2451
2446
builder. ensure ( CrateLibrustc { compiler, target : run. target , crates } ) ;
2452
2447
}
0 commit comments