From 522f97754d5416c6e1e61b601cd78470d79b168c Mon Sep 17 00:00:00 2001 From: Matthew Healy Date: Thu, 19 Dec 2019 20:42:01 +0100 Subject: [PATCH] Skip LLVM rebuild when skip-rebuild is true --- src/bootstrap/native.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/bootstrap/native.rs b/src/bootstrap/native.rs index be13b9aa2eb49..341d9b9446a12 100644 --- a/src/bootstrap/native.rs +++ b/src/bootstrap/native.rs @@ -74,6 +74,13 @@ 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));