Skip to content

Commit 9ea0a85

Browse files
committed
Rollup merge of #52434 - Mark-Simulacrum:incremental-keep-stage, r=alexcrichton
Enable incremental independent of stage Previously we'd only do so for stage 0 but with keep-stage improvements it seems likely that we'll see more developers working in the stage 1, so we should allow enabling incremental for them.
2 parents a07f213 + 827f656 commit 9ea0a85

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/bootstrap/builder.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -903,10 +903,7 @@ impl<'a> Builder<'a> {
903903
.env("RUSTC_SNAPSHOT_LIBDIR", self.rustc_libdir(compiler));
904904
}
905905

906-
// Ignore incremental modes except for stage0, since we're
907-
// not guaranteeing correctness across builds if the compiler
908-
// is changing under your feet.`
909-
if self.config.incremental && compiler.stage == 0 {
906+
if self.config.incremental {
910907
cargo.env("CARGO_INCREMENTAL", "1");
911908
}
912909

0 commit comments

Comments
 (0)