We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9535151 commit c0bea5dCopy full SHA for c0bea5d
src/bootstrap/src/core/build_steps/dist.rs
@@ -1029,6 +1029,17 @@ impl Step for PlainSourceTarball {
1029
],
1030
plain_dst_src,
1031
);
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
+ }
1043
1044
// Copy the files normally
1045
for item in &src_files {
0 commit comments