@@ -14,9 +14,8 @@ use crate::core::build_steps::synthetic_targets::MirOptPanicAbortSyntheticTarget
1414use crate :: core:: build_steps:: tool:: { self , SourceType , Tool } ;
1515use crate :: core:: build_steps:: toolstate:: ToolState ;
1616use crate :: core:: build_steps:: { compile, dist, llvm} ;
17- use crate :: core:: builder;
1817use crate :: core:: builder:: {
19- crate_description, Builder , Compiler , Kind , RunConfig , ShouldRun , Step ,
18+ self , crate_description, Alias , Builder , Compiler , Kind , RunConfig , ShouldRun , Step ,
2019} ;
2120use crate :: core:: config:: flags:: { get_completion, Subcommand } ;
2221use crate :: core:: config:: TargetSelection ;
@@ -2435,18 +2434,14 @@ impl Step for CrateLibrustc {
24352434 const ONLY_HOSTS : bool = true ;
24362435
24372436 fn should_run ( run : ShouldRun < ' _ > ) -> ShouldRun < ' _ > {
2438- run. crate_or_deps ( "rustc-main" )
2437+ run. crate_or_deps ( "rustc-main" ) . path ( "compiler" )
24392438 }
24402439
24412440 fn make_run ( run : RunConfig < ' _ > ) {
24422441 let builder = run. builder ;
24432442 let host = run. build_triple ( ) ;
24442443 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 ) ;
24502445
24512446 builder. ensure ( CrateLibrustc { compiler, target : run. target , crates } ) ;
24522447 }
0 commit comments