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 26, 2019
1 parent 2297a8b commit e44fc45
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/bootstrap/native.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down

0 comments on commit e44fc45

Please sign in to comment.