about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2018-07-17 18:15:10 +0800
committerkennytm <kennytm@gmail.com>2018-07-17 19:24:53 +0800
commit9ea0a8533e4e1708a4f412895ab51a4cb69492a4 (patch)
tree86e68448808392778bbcac793ee0980f49c1a7cb /src/bootstrap
parenta07f213974cee627a621c82e303b00ddaa8359e5 (diff)
parent827f656ebb1230f31af6d968c4bfe69a79914ffc (diff)
downloadrust-9ea0a8533e4e1708a4f412895ab51a4cb69492a4.tar.gz
rust-9ea0a8533e4e1708a4f412895ab51a4cb69492a4.zip
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.
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/builder.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/bootstrap/builder.rs b/src/bootstrap/builder.rs
index eb534cb685e..79167b1fd5e 100644
--- a/src/bootstrap/builder.rs
+++ b/src/bootstrap/builder.rs
@@ -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");
         }