Skip to content

Commit c0bea5d

Browse files
committed
Add a notice about missing GCC sources in source tarballs
1 parent 9535151 commit c0bea5d

File tree

1 file changed

+11
-0
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+11
-0
lines changed

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

+11
Original file line numberDiff line numberDiff line change
@@ -1029,6 +1029,17 @@ impl Step for PlainSourceTarball {
10291029
],
10301030
plain_dst_src,
10311031
);
1032+
// We keep something in src/gcc because it is a registered submodule,
1033+
// and if it misses completely it can cause issues elsewhere
1034+
// (see https://github.com/rust-lang/rust/issues/137332).
1035+
// We can also let others know why is the source code missing.
1036+
if !builder.config.dry_run() {
1037+
builder.create_dir(&plain_dst_src.join("src/gcc"));
1038+
t!(std::fs::write(
1039+
plain_dst_src.join("src/gcc/notice.txt"),
1040+
"The GCC source code is not included due to unclear licensing implications\n"
1041+
));
1042+
}
10321043

10331044
// Copy the files normally
10341045
for item in &src_files {

0 commit comments

Comments
 (0)