Skip to content

Commit

Permalink
Don't package up libLLVM.so with libstd
Browse files Browse the repository at this point in the history
It's only meant for rustc, so we should only install it once!
  • Loading branch information
alexcrichton committed Jan 2, 2019
1 parent fa4f014 commit 71fed3a
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/bootstrap/dist.rs
Expand Up @@ -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);
Expand Down

0 comments on commit 71fed3a

Please sign in to comment.