Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 5e39baa

Browse files
Install CI llvm into the library directory
1 parent 4ee7538 commit 5e39baa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/bootstrap/dist.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2378,7 +2378,7 @@ fn maybe_install_llvm(builder: &Builder<'_>, target: TargetSelection, dst_libdir
23782378
}
23792379

23802380
if let Some(config) = builder.config.target_config.get(&target) {
2381-
if config.llvm_config.is_some() {
2381+
if config.llvm_config.is_some() && !builder.config.llvm_from_ci {
23822382
// If the LLVM was externally provided, then we don't currently copy
23832383
// artifacts into the sysroot. This is not necessarily the right
23842384
// choice (in particular, it will require the LLVM dylib to be in
@@ -2389,6 +2389,9 @@ fn maybe_install_llvm(builder: &Builder<'_>, target: TargetSelection, dst_libdir
23892389
// with the wrong files and isn't what distributions want.
23902390
//
23912391
// This behavior may be revisited in the future though.
2392+
//
2393+
// If the LLVM is coming from ourselves (just from CI) though, we
2394+
// still want to install it, as it otherwise won't be available.
23922395
return;
23932396
}
23942397
}

0 commit comments

Comments
 (0)