Skip to content

Commit

Permalink
Add a notice about missing GCC sources in source tarballs
Browse files Browse the repository at this point in the history
  • Loading branch information
Kobzol committed Feb 20, 2025
1 parent 9535151 commit c0bea5d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/bootstrap/src/core/build_steps/dist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1029,6 +1029,17 @@ impl Step for PlainSourceTarball {
],
plain_dst_src,
);
// We keep something in src/gcc because it is a registered submodule,
// and if it misses completely it can cause issues elsewhere
// (see https://github.com/rust-lang/rust/issues/137332).
// We can also let others know why is the source code missing.
if !builder.config.dry_run() {
builder.create_dir(&plain_dst_src.join("src/gcc"));
t!(std::fs::write(
plain_dst_src.join("src/gcc/notice.txt"),
"The GCC source code is not included due to unclear licensing implications\n"
));
}

// Copy the files normally
for item in &src_files {
Expand Down

0 comments on commit c0bea5d

Please sign in to comment.