Skip to content

Commit cd5e75a

Browse files
committed
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 rust-lang#94906
1 parent 4800c78 commit cd5e75a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/bootstrap/dist.rs

+5
Original file line numberDiff line numberDiff line change
@@ -821,6 +821,11 @@ impl Step for Src {
821821
// not needed and contains symlinks which rustup currently
822822
// chokes on when unpacking.
823823
"library/backtrace/crates",
824+
// these are 30MB combined and aren't necessary for building
825+
// the standard library.
826+
"library/stdarch/crates/Cargo.toml",
827+
"library/stdarch/crates/stdarch-verify",
828+
"library/stdarch/crates/intrinsic-test",
824829
],
825830
&dst_src,
826831
);

0 commit comments

Comments
 (0)