Skip to content

Commit

Permalink
rust-src: include everything needed to compile libstd with jemalloc
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed May 25, 2017
1 parent 5b13bff commit 6453f68
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/bootstrap/dist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,7 @@ pub fn rust_src(build: &Build) {
"src/liballoc",
"src/liballoc_jemalloc",
"src/liballoc_system",
"src/libbacktrace",
"src/libcollections",
"src/libcompiler_builtins",
"src/libcore",
Expand All @@ -514,12 +515,25 @@ pub fn rust_src(build: &Build) {
"src/libstd_unicode",
"src/libunwind",
"src/rustc/libc_shim",
"src/libtest",
"src/libterm",
"src/libgetopts",
"src/compiler-rt",
"src/jemalloc",
];
let std_src_dirs_exclude = [
"src/compiler-rt/test",
"src/jemalloc/test/unit",
];

for item in &std_src_dirs {
let dst = &dst_src.join(item);
t!(fs::create_dir_all(dst));
cp_r(&plain_dst_src.join(item), dst);
cp_filtered(&plain_dst_src.join(item), dst,
&|path| {
let item_path = Path::new(item).join(path);
!std_src_dirs_exclude.iter().any(|excl| item_path == Path::new(excl))
} );
}

// Create source tarball in rust-installer format
Expand Down

0 comments on commit 6453f68

Please sign in to comment.