Skip to content

Commit 9e08d87

Browse files
committed
Do not explicitly build Rustc when bootstrap is invoked with the compiler path
It was confusing that the `Rustc` step was invoked twice, once with all crates and once with no crates (even though both of these mean the same thing).
1 parent 450a2d8 commit 9e08d87

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/bootstrap/src/core/build_steps/compile.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,6 +1022,12 @@ impl Step for Rustc {
10221022
}
10231023

10241024
fn make_run(run: RunConfig<'_>) {
1025+
// If only `compiler` was passed, do not run this step.
1026+
// Instead the `Assemble` step will take care of compiling Rustc.
1027+
if run.builder.paths == vec![PathBuf::from("compiler")] {
1028+
return;
1029+
}
1030+
10251031
let crates = run.cargo_crates_in_set();
10261032
run.builder.ensure(Rustc {
10271033
build_compiler: run

0 commit comments

Comments
 (0)