Skip to content

Commit a490b17

Browse files
committed
test duplicate features, that the last +/-lld on the CLI wins
1 parent 94f25a1 commit a490b17

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/run-make/rust-lld/Makefile

+4
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,7 @@ include ../tools.mk
66
all:
77
RUSTC_LOG=rustc_codegen_ssa::back::link=info $(RUSTC) -Clink-self-contained=+linker -Zlinker-features=+lld -Zunstable-options -Clink-args=-Wl,-v main.rs 2> $(TMPDIR)/output.txt
88
$(CGREP) -e "^LLD [0-9]+\.[0-9]+\.[0-9]+" < $(TMPDIR)/output.txt
9+
10+
# while we're here, also check that the last linker feature flag "wins"
11+
RUSTC_LOG=rustc_codegen_ssa::back::link=info $(RUSTC) -Clink-self-contained=+linker -Zlinker-features=-lld -Zlinker-features=+lld -Zunstable-options -Clink-args=-Wl,-v main.rs 2> $(TMPDIR)/output.txt
12+
$(CGREP) -e "^LLD [0-9]+\.[0-9]+\.[0-9]+" < $(TMPDIR)/output.txt

0 commit comments

Comments
 (0)