Skip to content

Commit fb8bde0

Browse files
committed
Auto merge of #52399 - semarie:llvmtools, r=alexcrichton
Disable LlvmTools packaging with external LLVM Fixes: #52102
2 parents 7751885 + 7e7c214 commit fb8bde0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/bootstrap/dist.rs

+9
Original file line numberDiff line numberDiff line change
@@ -1907,6 +1907,15 @@ impl Step for LlvmTools {
19071907
let target = self.target;
19081908
assert!(builder.config.extended);
19091909

1910+
/* run only if llvm-config isn't used */
1911+
if let Some(config) = builder.config.target_config.get(&target) {
1912+
if let Some(ref _s) = config.llvm_config {
1913+
builder.info(&format!("Skipping LlvmTools stage{} ({}): external LLVM",
1914+
stage, target));
1915+
return None;
1916+
}
1917+
}
1918+
19101919
builder.info(&format!("Dist LlvmTools stage{} ({})", stage, target));
19111920
let src = builder.src.join("src/llvm");
19121921
let name = pkgname(builder, "llvm-tools");

0 commit comments

Comments
 (0)