Skip to content

Commit f854f34

Browse files
committed
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).
1 parent bcd0683 commit f854f34

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
@@ -1011,7 +1011,18 @@ impl Step for PlainSourceTarball {
10111011
];
10121012
let src_dirs = ["src", "compiler", "library", "tests", "LICENSES"];
10131013

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

10161027
// Copy the files normally
10171028
for item in &src_files {

0 commit comments

Comments
 (0)