Skip to content

Commit 6594f36

Browse files
committed
add end-to-end test
1 parent 4ff780b commit 6594f36

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

tests/run-make/rust-lld/Makefile

+8
Original file line numberDiff line numberDiff line change
@@ -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

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// Test linking using `cc` with `rust-lld`, using the unstable CLI described in MCP 510
2+
// see https://github.com/rust-lang/compiler-team/issues/510 for more info
3+
4+
fn main() {}

0 commit comments

Comments
 (0)