From e44fc4577fdf5e269db0c7f574ac8d125067ccd8 Mon Sep 17 00:00:00 2001 From: Matthew Healy Date: Thu, 19 Dec 2019 20:42:01 +0100 Subject: Skip LLVM rebuild when skip-rebuild is true --- src/bootstrap/native.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/bootstrap') 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)); -- cgit 1.4.1-3-g733a5