Skip to content

Commit

Permalink
Skip LLVM rebuild when skip-rebuild is true
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Healy committed Dec 23, 2019
1 parent b05d9ee commit 522f977
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/bootstrap/native.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down

0 comments on commit 522f977

Please sign in to comment.