about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJakub Beránek <berykubik@gmail.com>2025-01-17 23:01:48 +0100
committerJakub Beránek <berykubik@gmail.com>2025-01-17 23:01:48 +0100
commitf854f34a502c358b0f6826ea3ebf40fb7f146de1 (patch)
tree861b5f817943acd28e7ca73dc96de6fad4402b96
parentbcd0683e5dce1945b5d940714742e7502883bb5c (diff)
downloadrust-f854f34a502c358b0f6826ea3ebf40fb7f146de1.tar.gz
rust-f854f34a502c358b0f6826ea3ebf40fb7f146de1.zip
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).
-rw-r--r--src/bootstrap/src/core/build_steps/dist.rs13
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 afa409aa835..87f48331bfe 100644
--- a/src/bootstrap/src/core/build_steps/dist.rs
+++ b/src/bootstrap/src/core/build_steps/dist.rs
@@ -1011,7 +1011,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 {