rustc/debian/bin/rust-lld
Fabian Grünbichler 482d9ff8f3 switch to LLVM 19
it's upstream's default LLVM version starting with rustc 1.82

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2024-10-21 11:19:40 +02:00

10 lines
476 B
Bash
Executable File

#!/bin/bash
# Wrapper around lld that strips away -Wl, which it doesn't recognise.
# We need this for the wasm32 tests, where we have generic RUSTFLAGS that
# includes LDFLAGS from dpkg-buildflags which assumes a GCC linker.
#
# However the tests fail for other reasons, namely we can't build rustdoc
# (which runs the tests) in wasm32 yet. So this is just WIP at the moment,
# it is not expect to work nor to be installed on user machines.
exec /usr/bin/lld-19 "${@/#-Wl,/}"