about summary refs log tree commit diff
path: root/src/bootstrap/bin
diff options
context:
space:
mode:
authorEric Huss <eric@huss.org>2020-07-04 14:46:04 -0700
committerEric Huss <eric@huss.org>2020-07-04 14:46:04 -0700
commit310c97b6ba7e6b8d4e3e7f337db0cff97f45f5c0 (patch)
tree335d865a3c2132b1add0a1a73027e7455340f10c /src/bootstrap/bin
parent0cd7ff7ddfb75a38dca81ad3e76b1e984129e939 (diff)
downloadrust-310c97b6ba7e6b8d4e3e7f337db0cff97f45f5c0.tar.gz
rust-310c97b6ba7e6b8d4e3e7f337db0cff97f45f5c0.zip
Fix caching issue when building tools.
Diffstat (limited to 'src/bootstrap/bin')
-rw-r--r--src/bootstrap/bin/rustc.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bootstrap/bin/rustc.rs b/src/bootstrap/bin/rustc.rs
index 3072a4a1ae7..fd36cd9bd8b 100644
--- a/src/bootstrap/bin/rustc.rs
+++ b/src/bootstrap/bin/rustc.rs
@@ -76,6 +76,10 @@ fn main() {
         cmd.env("RUST_BACKTRACE", "1");
     }
 
+    if let Ok(lint_flags) = env::var("RUSTC_LINT_FLAGS") {
+        cmd.args(lint_flags.split_whitespace());
+    }
+
     if target.is_some() {
         // The stage0 compiler has a special sysroot distinct from what we
         // actually downloaded, so we just always pass the `--sysroot` option,