We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f04c944 commit 011aacdCopy full SHA for 011aacd
src/test/run-make/rust-lld/Makefile
@@ -0,0 +1,15 @@
1
+# only-linux
2
+# only-x86_64
3
+# needs-rust-lld
4
+
5
+# Ensure that the stable version of `-Zgcc-ld=lld` works:
6
+# - `-C link-self-contained=linker`
7
+# - `-C linker-flavor=gcc:lld`
8
9
+-include ../../run-make-fulldeps/tools.mk
10
+RUSTC_FLAGS = -C linker-flavor=gcc:lld -C link-self-contained=linker -Z unstable-options -C link-args=-Wl,-v
11
12
+all:
13
+ RUSTC_LOG=rustc_codegen_ssa::back::link=info $(RUSTC) $(RUSTC_FLAGS) empty.rs 2> $(TMPDIR)/output.txt
14
+ $(CGREP) "lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld/ld" < $(TMPDIR)/output.txt
15
+ $(CGREP) -e "^LLD [0-9]+\.[0-9]+\.[0-9]+" < $(TMPDIR)/output.txt
src/test/run-make/rust-lld/empty.rs
@@ -0,0 +1 @@
+fn main() {}
0 commit comments