diff options
| author | Ralf Jung <post@ralfj.de> | 2017-08-24 23:25:35 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2017-08-24 23:25:35 +0200 |
| commit | 8cd4cacbc797cf3ab5024bc819c228cd264aa82e (patch) | |
| tree | f11b4724b377c6179698e9d8ae90dc48c1c162a1 /src/bootstrap | |
| parent | a12e4f8098438cbfa65361647742e3c026574cb5 (diff) | |
| download | rust-8cd4cacbc797cf3ab5024bc819c228cd264aa82e.tar.gz rust-8cd4cacbc797cf3ab5024bc819c228cd264aa82e.zip | |
include Cargo.{toml,lock} in rust-src tarball
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/dist.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/bootstrap/dist.rs b/src/bootstrap/dist.rs index bfcfb5f9a37..8d3fc066982 100644 --- a/src/bootstrap/dist.rs +++ b/src/bootstrap/dist.rs @@ -724,6 +724,10 @@ impl Step for Src { let dst_src = dst.join("rust"); t!(fs::create_dir_all(&dst_src)); + let src_files = [ + "src/Cargo.toml", + "src/Cargo.lock", + ]; // This is the reduced set of paths which will become the rust-src component // (essentially libstd and all of its path dependencies) let std_src_dirs = [ @@ -759,6 +763,9 @@ impl Step for Src { ]; copy_src_dirs(build, &std_src_dirs[..], &std_src_dirs_exclude[..], &dst_src); + for file in src_files.iter() { + copy(&build.src.join(file), &dst_src.join(file)); + } // Create source tarball in rust-installer format let mut cmd = rust_installer(builder); |
