File tree 1 file changed +15
-1
lines changed
1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -499,6 +499,7 @@ pub fn rust_src(build: &Build) {
499
499
"src/liballoc" ,
500
500
"src/liballoc_jemalloc" ,
501
501
"src/liballoc_system" ,
502
+ "src/libbacktrace" ,
502
503
"src/libcollections" ,
503
504
"src/libcompiler_builtins" ,
504
505
"src/libcore" ,
@@ -514,12 +515,25 @@ pub fn rust_src(build: &Build) {
514
515
"src/libstd_unicode" ,
515
516
"src/libunwind" ,
516
517
"src/rustc/libc_shim" ,
518
+ "src/libtest" ,
519
+ "src/libterm" ,
520
+ "src/libgetopts" ,
521
+ "src/compiler-rt" ,
522
+ "src/jemalloc" ,
523
+ ] ;
524
+ let std_src_dirs_exclude = [
525
+ "src/compiler-rt/test" ,
526
+ "src/jemalloc/test/unit" ,
517
527
] ;
518
528
519
529
for item in & std_src_dirs {
520
530
let dst = & dst_src. join ( item) ;
521
531
t ! ( fs:: create_dir_all( dst) ) ;
522
- cp_r ( & plain_dst_src. join ( item) , dst) ;
532
+ cp_filtered ( & plain_dst_src. join ( item) , dst,
533
+ & |path| {
534
+ let item_path = Path :: new ( item) . join ( path) ;
535
+ !std_src_dirs_exclude. iter ( ) . any ( |excl| item_path == Path :: new ( excl) )
536
+ } ) ;
523
537
}
524
538
525
539
// Create source tarball in rust-installer format
You can’t perform that action at this time.
0 commit comments