diff options
| author | Matthew Healy <matthew.healy@soundcloud.com> | 2019-12-19 20:42:01 +0100 |
|---|---|---|
| committer | Matthew Healy <matthew.healy@soundcloud.com> | 2019-12-26 22:19:18 +0000 |
| commit | e44fc4577fdf5e269db0c7f574ac8d125067ccd8 (patch) | |
| tree | 92bcd0be25a4e1271bbb16487a81f2a33b75b2b4 | |
| parent | 2297a8b1990930144c240743230f6860899b89f5 (diff) | |
| download | rust-e44fc4577fdf5e269db0c7f574ac8d125067ccd8.tar.gz rust-e44fc4577fdf5e269db0c7f574ac8d125067ccd8.zip | |
Skip LLVM rebuild when skip-rebuild is true
| -rw-r--r-- | src/bootstrap/native.rs | 9 |
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)); |
