Rollup merge of #94907 - bjorn3:smaller_rust_src_component, r=Mark-Simulacrum

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
This commit is contained in:
Matthias Krüger 2022-03-13 20:02:02 +01:00 committed by GitHub
commit c7030d3eb3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,
);