]> git.lizzy.rs Git - rust.git/commitdiff
Install CI llvm into the library directory
authorMark Rousskov <mark.simulacrum@gmail.com>
Sun, 15 Nov 2020 13:59:53 +0000 (08:59 -0500)
committerMark Rousskov <mark.simulacrum@gmail.com>
Sun, 15 Nov 2020 13:59:53 +0000 (08:59 -0500)
src/bootstrap/dist.rs

index 514be9e6864ba01e9d1ccdabd92ffd2043903ba8..9b77e38a8474fc0301d3a1e4d07e4606af0ac2d6 100644 (file)
@@ -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;
         }
     }