1
Fork 0

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.
This commit is contained in:
kennytm 2018-07-17 18:15:10 +08:00
commit 9ea0a8533e
No known key found for this signature in database
GPG key ID: FEF6C8051D0E013C

View file

@ -903,10 +903,7 @@ impl<'a> Builder<'a> {
.env("RUSTC_SNAPSHOT_LIBDIR", self.rustc_libdir(compiler));
}
// Ignore incremental modes except for stage0, since we're
// not guaranteeing correctness across builds if the compiler
// is changing under your feet.`
if self.config.incremental && compiler.stage == 0 {
if self.config.incremental {
cargo.env("CARGO_INCREMENTAL", "1");
}