Skip LLVM rebuild when skip-rebuild is true
This commit is contained in:
parent
2297a8b199
commit
e44fc4577f
@ -70,6 +70,15 @@ impl Step for Llvm {
|
|||||||
let done_stamp = out_dir.join("llvm-finished-building");
|
let done_stamp = out_dir.join("llvm-finished-building");
|
||||||
|
|
||||||
if done_stamp.exists() {
|
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() {
|
if let Some(llvm_commit) = llvm_info.sha() {
|
||||||
let done_contents = t!(fs::read(&done_stamp));
|
let done_contents = t!(fs::read(&done_stamp));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user