diff options
| author | Josh Stone <jistone@redhat.com> | 2017-04-25 15:58:07 -0700 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2017-04-25 16:13:46 -0700 |
| commit | b9bdb1766d68dbe5da0e0cd65b2227186004d2cf (patch) | |
| tree | 151c2c1d053f31288f4586c2375eca35e85490ae /src/bootstrap | |
| parent | 7248f67f1b5062c99fd9a1972c932cb79c590910 (diff) | |
| download | rust-b9bdb1766d68dbe5da0e0cd65b2227186004d2cf.tar.gz rust-b9bdb1766d68dbe5da0e0cd65b2227186004d2cf.zip | |
Reduce the contents of the rust-src component
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/dist.rs | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/src/bootstrap/dist.rs b/src/bootstrap/dist.rs index e8c9a96b221..7e04b3660cd 100644 --- a/src/bootstrap/dist.rs +++ b/src/bootstrap/dist.rs @@ -480,7 +480,35 @@ pub fn rust_src(build: &Build) { let dst_src = dst.join("rust"); t!(fs::create_dir_all(&dst_src)); - cp_r(&plain_dst_src, &dst_src); + // This is the reduced set of paths which will become the rust-src component + // (essentially libstd and all of its path dependencies) + let std_src_dirs = [ + "src/build_helper", + "src/liballoc", + "src/liballoc_jemalloc", + "src/liballoc_system", + "src/libcollections", + "src/libcompiler_builtins", + "src/libcore", + "src/liblibc", + "src/libpanic_abort", + "src/libpanic_unwind", + "src/librand", + "src/librustc_asan", + "src/librustc_lsan", + "src/librustc_msan", + "src/librustc_tsan", + "src/libstd", + "src/libstd_unicode", + "src/libunwind", + "src/rustc/libc_shim", + ]; + + 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); + } // Create source tarball in rust-installer format let mut cmd = Command::new(SH_CMD); |
