about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2022-03-13 15:09:48 +0100
committerbjorn3 <bjorn3@users.noreply.github.com>2022-03-13 17:38:59 +0100
commitcd5e75a691f68167df16b6a98fafcbc41d4afd57 (patch)
treeab780a3905382f1556dd990e103ae22eab2e9d04
parent4800c7816ee1937d028407066d229f74b4673c92 (diff)
downloadrust-cd5e75a691f68167df16b6a98fafcbc41d4afd57.tar.gz
rust-cd5e75a691f68167df16b6a98fafcbc41d4afd57.zip
Omit stdarch test crates from the rust-src component
These crates aren't necessary for building the standard library. This
saves 30MB of disk space.

Fixes #94906
-rw-r--r--src/bootstrap/dist.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bootstrap/dist.rs b/src/bootstrap/dist.rs
index 5f92cc2ca6f..76054122d00 100644
--- a/src/bootstrap/dist.rs
+++ b/src/bootstrap/dist.rs
@@ -821,6 +821,11 @@ impl Step for Src {
                 // not needed and contains symlinks which rustup currently
                 // chokes on when unpacking.
                 "library/backtrace/crates",
+                // these are 30MB combined and aren't necessary for building
+                // the standard library.
+                "library/stdarch/crates/Cargo.toml",
+                "library/stdarch/crates/stdarch-verify",
+                "library/stdarch/crates/intrinsic-test",
             ],
             &dst_src,
         );