Skip to content

Commit e44fc45

Browse files
author
Matthew Healy
committed
Skip LLVM rebuild when skip-rebuild is true
1 parent 2297a8b commit e44fc45

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/bootstrap/native.rs

+9
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,15 @@ impl Step for Llvm {
7070
let done_stamp = out_dir.join("llvm-finished-building");
7171

7272
if done_stamp.exists() {
73+
if builder.config.llvm_skip_rebuild {
74+
builder.info(
75+
"Warning: \
76+
Using a potentially stale build of LLVM; \
77+
This may not behave well.",
78+
);
79+
return build_llvm_config;
80+
}
81+
7382
if let Some(llvm_commit) = llvm_info.sha() {
7483
let done_contents = t!(fs::read(&done_stamp));
7584

0 commit comments

Comments
 (0)