We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa4f014 commit 71fed3aCopy full SHA for 71fed3a
src/bootstrap/dist.rs
@@ -671,10 +671,18 @@ impl Step for Std {
671
let mut src = builder.sysroot_libdir(compiler, target).to_path_buf();
672
src.pop(); // Remove the trailing /lib folder from the sysroot_libdir
673
builder.cp_filtered(&src, &dst, &|path| {
674
- let name = path.file_name().and_then(|s| s.to_str());
675
- name != Some(builder.config.rust_codegen_backends_dir.as_str()) &&
676
- name != Some("bin")
677
-
+ 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
+ }
678
+ if name == "bin" {
679
680
681
+ if name.contains("LLVM") {
682
683
684
685
+ true
686
});
687
688
let mut cmd = rust_installer(builder);
0 commit comments