diff options
| author | 许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com> | 2025-01-20 21:45:05 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-20 21:45:05 +0800 |
| commit | a41d652d10db27394ed5cf1bac2a45c5db98e199 (patch) | |
| tree | fb85295eb5931b7967d59849610d9e6dc02ff09d | |
| parent | e7f53663de0073dc6c16b744f984638265e7f5fb (diff) | |
| parent | f854f34a502c358b0f6826ea3ebf40fb7f146de1 (diff) | |
| download | rust-a41d652d10db27394ed5cf1bac2a45c5db98e199.tar.gz rust-a41d652d10db27394ed5cf1bac2a45c5db98e199.zip | |
Rollup merge of #135658 - Kobzol:src-tarball-remove-gcc, r=jieyouxu
Do not include GCC source code in source tarballs The licensing story is unclear, it makes the archive much larger, and we should not need it for building anything in the tarballs (yet). ``` Before: 121s building the archive 1.3 GiB gzipped size 5.7 GiB extracted size 402519 extracted files After: 64s building the archive 961 MiB gzipped size 4.5 GiB extracted size 257719 extracfed files ``` Fixes: https://github.com/rust-lang/rust/issues/135606 r? `@ehuss`
| -rw-r--r-- | src/bootstrap/src/core/build_steps/dist.rs | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/bootstrap/src/core/build_steps/dist.rs b/src/bootstrap/src/core/build_steps/dist.rs index 470e400243f..18f920b85ee 100644 --- a/src/bootstrap/src/core/build_steps/dist.rs +++ b/src/bootstrap/src/core/build_steps/dist.rs @@ -1015,7 +1015,18 @@ impl Step for PlainSourceTarball { ]; let src_dirs = ["src", "compiler", "library", "tests", "LICENSES"]; - copy_src_dirs(builder, &builder.src, &src_dirs, &[], plain_dst_src); + copy_src_dirs( + builder, + &builder.src, + &src_dirs, + &[ + // We don't currently use the GCC source code for building any official components, + // it is very big, and has unclear licensing implications due to being GPL licensed. + // We thus exclude it from the source tarball from now. + "src/gcc", + ], + plain_dst_src, + ); // Copy the files normally for item in &src_files { |
