File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -671,10 +671,18 @@ impl Step for Std {
671
671
let mut src = builder. sysroot_libdir ( compiler, target) . to_path_buf ( ) ;
672
672
src. pop ( ) ; // Remove the trailing /lib folder from the sysroot_libdir
673
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
-
674
+ if let Some ( name) = path. file_name ( ) . and_then ( |s| s. to_str ( ) ) {
675
+ if name == builder. config . rust_codegen_backends_dir . as_str ( ) {
676
+ return false
677
+ }
678
+ if name == "bin" {
679
+ return false
680
+ }
681
+ if name. contains ( "LLVM" ) {
682
+ return false
683
+ }
684
+ }
685
+ true
678
686
} ) ;
679
687
680
688
let mut cmd = rust_installer ( builder) ;
You can’t perform that action at this time.
0 commit comments