Skip to content

Commit

Permalink
test duplicate features, that the last +/-lld on the CLI wins
Browse files Browse the repository at this point in the history
  • Loading branch information
lqd committed Apr 12, 2024
1 parent 317d0bd commit dee834b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/run-make/rust-lld/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ include ../tools.mk
all:
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
$(CGREP) -e "^LLD [0-9]+\.[0-9]+\.[0-9]+" < $(TMPDIR)/output.txt

# while we're here, also check that the last linker feature flag "wins"
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
$(CGREP) -e "^LLD [0-9]+\.[0-9]+\.[0-9]+" < $(TMPDIR)/output.txt

0 comments on commit dee834b

Please sign in to comment.