summaryrefslogtreecommitdiffstats
path: root/debian/bin
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:03:05 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:03:05 +0000
commit217d9223a5aa75daf9f286fd1fc06dae379b5dbc (patch)
treeb43bedae234ad56894a82934ee57e3619f3374d5 /debian/bin
parentAdding upstream version 1.64.0+dfsg1. (diff)
downloadrustc-217d9223a5aa75daf9f286fd1fc06dae379b5dbc.tar.xz
rustc-217d9223a5aa75daf9f286fd1fc06dae379b5dbc.zip
Adding debian version 1.64.0+dfsg1-1.debian/1.64.0+dfsg1-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/bin')
-rwxr-xr-xdebian/bin/rust-lld9
1 files changed, 9 insertions, 0 deletions
diff --git a/debian/bin/rust-lld b/debian/bin/rust-lld
new file mode 100755
index 000000000..04aec84b4
--- /dev/null
+++ b/debian/bin/rust-lld
@@ -0,0 +1,9 @@
+#!/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-14 "${@/#-Wl,/}"