Skip to content

Commit a41d652

Browse files
authored
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: #135606 r? `@ehuss`
2 parents e7f5366 + f854f34 commit a41d652

File tree

1 file changed

+12
-1
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+12
-1
lines changed

Diff for: src/bootstrap/src/core/build_steps/dist.rs

+12-1
Original file line numberDiff line numberDiff line change
@@ -1015,7 +1015,18 @@ impl Step for PlainSourceTarball {
10151015
];
10161016
let src_dirs = ["src", "compiler", "library", "tests", "LICENSES"];
10171017

1018-
copy_src_dirs(builder, &builder.src, &src_dirs, &[], plain_dst_src);
1018+
copy_src_dirs(
1019+
builder,
1020+
&builder.src,
1021+
&src_dirs,
1022+
&[
1023+
// We don't currently use the GCC source code for building any official components,
1024+
// it is very big, and has unclear licensing implications due to being GPL licensed.
1025+
// We thus exclude it from the source tarball from now.
1026+
"src/gcc",
1027+
],
1028+
plain_dst_src,
1029+
);
10191030

10201031
// Copy the files normally
10211032
for item in &src_files {

0 commit comments

Comments
 (0)