diff options
| author | Josh Stone <jistone@redhat.com> | 2020-05-07 17:27:08 -0700 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2020-05-20 16:28:28 -0700 |
| commit | 9c97b3cbf16584385111cf6f2c41d4482f41a6cd (patch) | |
| tree | f149ab7c5873687d296e3bfe07605ec656a077d9 /src/rustllvm/RustWrapper.cpp | |
| parent | 027149919e36ce5645ca5d02d55b97ef52eb55ba (diff) | |
| download | rust-9c97b3cbf16584385111cf6f2c41d4482f41a6cd.tar.gz rust-9c97b3cbf16584385111cf6f2c41d4482f41a6cd.zip | |
Move the target libLLVM to llvm-tools-preview
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 only times we do need the latter are for the
RPATH of `llvm-tools-preview` binaries, and for linking `rustc-dev`
libraries. We'll move it to the `llvm-tools-preview` component directly,
and `rustc-dev` will have an implicit dependency on it.
Here are the dist sizes that I got before and after this change:
llvm-tools-1.45.0-dev-x86_64-unknown-linux-gnu.tar.gz 1.3M 24M
llvm-tools-1.45.0-dev-x86_64-unknown-linux-gnu.tar.xz 748K 17M
rustc-1.45.0-dev-x86_64-unknown-linux-gnu.tar.gz 83M 61M
rustc-1.45.0-dev-x86_64-unknown-linux-gnu.tar.xz 56M 41M
The installed size should reduce by exactly one `libLLVM.so` (~70-80M),
unless you also install `llvm-tools`, and then it should be identical.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
