about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2019-01-02 13:07:26 -0800
committerAlex Crichton <alex@alexcrichton.com>2019-01-02 13:07:26 -0800
commit71fed3a8ab479ec46d9fd9a7c5c8f4ffb97786dc (patch)
treee5c9373cd8ce2852095755f009dd5bab9b8fa671 /src/bootstrap
parentfa4f014110fdd111742d75f7976ffc754f7720da (diff)
downloadrust-71fed3a8ab479ec46d9fd9a7c5c8f4ffb97786dc.tar.gz
rust-71fed3a8ab479ec46d9fd9a7c5c8f4ffb97786dc.zip
Don't package up libLLVM.so with libstd
It's only meant for rustc, so we should only install it once!
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/dist.rs16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/bootstrap/dist.rs b/src/bootstrap/dist.rs
index 97a359639cb..38869bf441a 100644
--- a/src/bootstrap/dist.rs
+++ b/src/bootstrap/dist.rs
@@ -671,10 +671,18 @@ impl Step for Std {
         let mut src = builder.sysroot_libdir(compiler, target).to_path_buf();
         src.pop(); // Remove the trailing /lib folder from the sysroot_libdir
         builder.cp_filtered(&src, &dst, &|path| {
-            let name = path.file_name().and_then(|s| s.to_str());
-            name != Some(builder.config.rust_codegen_backends_dir.as_str()) &&
-                name != Some("bin")
-
+            if let Some(name) = path.file_name().and_then(|s| s.to_str()) {
+                if name == builder.config.rust_codegen_backends_dir.as_str() {
+                    return false
+                }
+                if name == "bin" {
+                    return false
+                }
+                if name.contains("LLVM") {
+                    return false
+                }
+            }
+            true
         });
 
         let mut cmd = rust_installer(builder);