File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -724,6 +724,10 @@ impl Step for Src {
724
724
let dst_src = dst. join ( "rust" ) ;
725
725
t ! ( fs:: create_dir_all( & dst_src) ) ;
726
726
727
+ let src_files = [
728
+ "src/Cargo.toml" ,
729
+ "src/Cargo.lock" ,
730
+ ] ;
727
731
// This is the reduced set of paths which will become the rust-src component
728
732
// (essentially libstd and all of its path dependencies)
729
733
let std_src_dirs = [
@@ -759,6 +763,9 @@ impl Step for Src {
759
763
] ;
760
764
761
765
copy_src_dirs ( build, & std_src_dirs[ ..] , & std_src_dirs_exclude[ ..] , & dst_src) ;
766
+ for file in src_files. iter ( ) {
767
+ copy ( & build. src . join ( file) , & dst_src. join ( file) ) ;
768
+ }
762
769
763
770
// Create source tarball in rust-installer format
764
771
let mut cmd = rust_installer ( builder) ;
You can’t perform that action at this time.
0 commit comments