about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthew Healy <matthew.healy@soundcloud.com>2019-12-19 20:42:01 +0100
committerMatthew Healy <matthew.healy@soundcloud.com>2019-12-26 22:19:18 +0000
commite44fc4577fdf5e269db0c7f574ac8d125067ccd8 (patch)
tree92bcd0be25a4e1271bbb16487a81f2a33b75b2b4
parent2297a8b1990930144c240743230f6860899b89f5 (diff)
downloadrust-e44fc4577fdf5e269db0c7f574ac8d125067ccd8.tar.gz
rust-e44fc4577fdf5e269db0c7f574ac8d125067ccd8.zip
Skip LLVM rebuild when skip-rebuild is true
-rw-r--r--src/bootstrap/native.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/bootstrap/native.rs b/src/bootstrap/native.rs
index afee154fe71..2a4e9903e55 100644
--- a/src/bootstrap/native.rs
+++ b/src/bootstrap/native.rs
@@ -70,6 +70,15 @@ impl Step for Llvm {
         let done_stamp = out_dir.join("llvm-finished-building");
 
         if done_stamp.exists() {
+            if builder.config.llvm_skip_rebuild {
+                builder.info(
+                    "Warning: \
+                    Using a potentially stale build of LLVM; \
+                    This may not behave well.",
+                );
+                return build_llvm_config;
+            }
+
             if let Some(llvm_commit) = llvm_info.sha() {
                 let done_contents = t!(fs::read(&done_stamp));