about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMark Rousskov <mark.simulacrum@gmail.com>2020-11-15 08:59:53 -0500
committerPietro Albini <pietro@pietroalbini.org>2020-11-17 12:38:49 +0100
commit2101ecacf8977435ba569d477a1720e898069675 (patch)
tree3d2d9fd998fe5b9edd93c127e950c81f4b12093c
parenta01256f4ae18526e11f5d50a584dfac8a445418a (diff)
downloadrust-2101ecacf8977435ba569d477a1720e898069675.tar.gz
rust-2101ecacf8977435ba569d477a1720e898069675.zip
Install CI llvm into the library directory
-rw-r--r--src/bootstrap/dist.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bootstrap/dist.rs b/src/bootstrap/dist.rs
index 514be9e6864..9b77e38a847 100644
--- a/src/bootstrap/dist.rs
+++ b/src/bootstrap/dist.rs
@@ -2358,7 +2358,7 @@ fn maybe_install_llvm(builder: &Builder<'_>, target: TargetSelection, dst_libdir
     }
 
     if let Some(config) = builder.config.target_config.get(&target) {
-        if config.llvm_config.is_some() {
+        if config.llvm_config.is_some() && !builder.config.llvm_from_ci {
             // If the LLVM was externally provided, then we don't currently copy
             // artifacts into the sysroot. This is not necessarily the right
             // choice (in particular, it will require the LLVM dylib to be in
@@ -2369,6 +2369,9 @@ fn maybe_install_llvm(builder: &Builder<'_>, target: TargetSelection, dst_libdir
             // with the wrong files and isn't what distributions want.
             //
             // This behavior may be revisited in the future though.
+            //
+            // If the LLVM is coming from ourselves (just from CI) though, we
+            // still want to install it, as it otherwise won't be available.
             return;
         }
     }