File tree 1 file changed +11
-0
lines changed
src/bootstrap/src/core/build_steps
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -1029,6 +1029,17 @@ impl Step for PlainSourceTarball {
1029
1029
] ,
1030
1030
plain_dst_src,
1031
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
+ }
1032
1043
1033
1044
// Copy the files normally
1034
1045
for item in & src_files {
You can’t perform that action at this time.
0 commit comments