rust-llvm: ship symlink to llvm-objcopy instead of copy of binary

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler 2025-01-21 11:35:40 +01:00
parent 44adb4926e
commit 70778df59b
3 changed files with 8 additions and 1 deletions

View File

@ -8,6 +8,9 @@ usr/lib/rustlib/uninstall.sh
# redundant copy of llvm-dwp, we already link it in rustc.links # redundant copy of llvm-dwp, we already link it in rustc.links
usr/lib/rustlib/*/bin/rust-llvm-dwp usr/lib/rustlib/*/bin/rust-llvm-dwp
# redundant copy of llvm-objcopy, we already link it in rustc.links
usr/lib/rustlib/*/bin/rust-objcopy
# docs, we already install into /usr/share/doc/rustc # docs, we already install into /usr/share/doc/rustc
usr/share/doc/docs/* usr/share/doc/docs/*

View File

@ -1,2 +1 @@
usr/lib/rustlib/${env:DEB_HOST_RUST_TYPE}/bin/wasm-component-ld usr/lib/rustlib/${env:DEB_HOST_RUST_TYPE}/bin/wasm-component-ld
usr/lib/rustlib/${env:DEB_HOST_RUST_TYPE}/bin/rust-objcopy

View File

@ -4,6 +4,11 @@ usr/bin/llvm-dwp-19 usr/bin/rust-llvm-dwp
# for -Z gcc-ld=lld, see compiler/rustc_codegen_ssa/src/back/link.rs for logic # for -Z gcc-ld=lld, see compiler/rustc_codegen_ssa/src/back/link.rs for logic
usr/bin/rust-lld usr/lib/rustlib/${env:DEB_HOST_RUST_TYPE}/bin/gcc-ld/ld usr/bin/rust-lld usr/lib/rustlib/${env:DEB_HOST_RUST_TYPE}/bin/gcc-ld/ld
usr/bin/rust-lld usr/lib/rustlib/${env:DEB_HOST_RUST_TYPE}/bin/gcc-ld/ld64 usr/bin/rust-lld usr/lib/rustlib/${env:DEB_HOST_RUST_TYPE}/bin/gcc-ld/ld64
# instead of shipping the one copied by bootstrap, which would be for the wrong
# architecture in case of a cross build anyway
usr/bin/llvm-objcopy-19 usr/lib/rustlib/${env:DEB_HOST_RUST_TYPE}/bin/rust-objcopy
# For applications that use cargo-binutils, e.g. grcov # For applications that use cargo-binutils, e.g. grcov
usr/bin/llvm-profdata-19 usr/lib/rustlib/${env:DEB_HOST_RUST_TYPE}/bin/llvm-profdata usr/bin/llvm-profdata-19 usr/lib/rustlib/${env:DEB_HOST_RUST_TYPE}/bin/llvm-profdata
usr/bin/llvm-cov-19 usr/lib/rustlib/${env:DEB_HOST_RUST_TYPE}/bin/llvm-cov usr/bin/llvm-cov-19 usr/lib/rustlib/${env:DEB_HOST_RUST_TYPE}/bin/llvm-cov