Skip to content

Commit

Permalink
Rollup merge of #135658 - Kobzol:src-tarball-remove-gcc, r=jieyouxu
Browse files Browse the repository at this point in the history
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`
  • Loading branch information
jieyouxu authored Jan 20, 2025
2 parents e7f5366 + f854f34 commit a41d652
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/bootstrap/src/core/build_steps/dist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a41d652

Please sign in to comment.