Skip to content

Commit 13c3f9b

Browse files
Kobzolcuviper
authored andcommitted
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). (cherry picked from commit f854f34)
1 parent f264675 commit 13c3f9b

File tree

1 file changed

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

1 file changed

+12
-1
lines changed

src/bootstrap/src/core/build_steps/dist.rs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -995,7 +995,18 @@ impl Step for PlainSourceTarball {
995995
];
996996
let src_dirs = ["src", "compiler", "library", "tests"];
997997

998-
copy_src_dirs(builder, &builder.src, &src_dirs, &[], plain_dst_src);
998+
copy_src_dirs(
999+
builder,
1000+
&builder.src,
1001+
&src_dirs,
1002+
&[
1003+
// We don't currently use the GCC source code for building any official components,
1004+
// it is very big, and has unclear licensing implications due to being GPL licensed.
1005+
// We thus exclude it from the source tarball from now.
1006+
"src/gcc",
1007+
],
1008+
plain_dst_src,
1009+
);
9991010

10001011
// Copy the files normally
10011012
for item in &src_files {

0 commit comments

Comments
 (0)