-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #72000 - cuviper:dist-llvm, r=<try>
Move the target libLLVM to rustc-dev For running the compiler, we usually only need LLVM from `$sysroot/lib`, which rustup will make available with `LD_LIBRARY_PATH`. We've also been shipping LLVM in the `$target/lib` directory, which bloats the download and installed size. The one time we do need the latter is for linking `rustc-dev` libraries, so let's move it to that component directly. Here are the dist sizes that I got before and after this change: rust-1.45.0-dev-x86_64-unknown-linux-gnu.tar.gz 182M 159M rust-1.45.0-dev-x86_64-unknown-linux-gnu.tar.xz 107M 91M rustc-1.45.0-dev-x86_64-unknown-linux-gnu.tar.gz 100M 78M rustc-1.45.0-dev-x86_64-unknown-linux-gnu.tar.xz 68M 53M rustc-dev-1.45.0-dev-x86_64-unknown-linux-gnu.tar.gz 146M 168M rustc-dev-1.45.0-dev-x86_64-unknown-linux-gnu.tar.xz 92M 108M The installed size should reduce by exactly one `libLLVM.so` (~70-80M), unless you also install `rustc-dev`, and then it should be identical. Resolves #70838.
- Loading branch information
Showing
2 changed files
with
32 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters