From dee834b8a652ea867dca20192400f7331b830a7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Rakic?= Date: Wed, 10 Apr 2024 16:32:45 +0000 Subject: [PATCH] test duplicate features, that the last `+/-lld` on the CLI wins --- tests/run-make/rust-lld/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/run-make/rust-lld/Makefile b/tests/run-make/rust-lld/Makefile index 50752391e2804..1ecac479f4147 100644 --- a/tests/run-make/rust-lld/Makefile +++ b/tests/run-make/rust-lld/Makefile @@ -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