Skip to content

Commit 522f977

Browse files
author
Matthew Healy
committed
Skip LLVM rebuild when skip-rebuild is true
1 parent b05d9ee commit 522f977

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/bootstrap/native.rs

+7
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,13 @@ impl Step for Llvm {
7474
let done_stamp = out_dir.join("llvm-finished-building");
7575

7676
if done_stamp.exists() {
77+
if builder.config.llvm_skip_rebuild {
78+
builder.info("Warning: \
79+
Using a potentially stale build of LLVM; \
80+
This may not behave well.");
81+
return build_llvm_config;
82+
}
83+
7784
if let Some(llvm_commit) = llvm_info.sha() {
7885
let done_contents = t!(fs::read(&done_stamp));
7986

0 commit comments

Comments
 (0)