We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ff780b commit 6594f36Copy full SHA for 6594f36
tests/run-make/rust-lld/Makefile
@@ -0,0 +1,8 @@
1
+include ../tools.mk
2
+
3
+# ignore-msvc
4
+# needs-rust-lld
5
+# ignore-s390x lld does not yet support s390x as target
6
+all:
7
+ RUSTC_LOG=rustc_codegen_ssa::back::link=info $(RUSTC) -Clink-self-contained=+linker -Clinker-flavor=gnu-lld-cc -Zunstable-options -Clink-args=-Wl,-v main.rs 2> $(TMPDIR)/output.txt
8
+ $(CGREP) -e "^LLD [0-9]+\.[0-9]+\.[0-9]+" < $(TMPDIR)/output.txt
tests/run-make/rust-lld/main.rs
@@ -0,0 +1,4 @@
+// Test linking using `cc` with `rust-lld`, using the unstable CLI described in MCP 510
+// see https://github.com/rust-lang/compiler-team/issues/510 for more info
+fn main() {}
0 commit comments