From 568b7221402b348fe65fd87ade2e1174b356bd74 Mon Sep 17 00:00:00 2001 From: "Felix S. Klock II" Date: Fri, 10 Mar 2023 13:13:45 -0500 Subject: [PATCH] Test using pattern established in run-make/wasm-stringify-ints-small. Replicates problem on my machine. To exercise the test, I had to use a config.toml that has: ``` [build] target = ["x86_64-unknown-linux-gnu","wasm32-unknown-unknown"] nodejs = "node" [rust] lld = true ``` --- tests/run-make/wasm-override-linker/Makefile | 11 +++++++++++ tests/run-make/wasm-override-linker/foo.rs | 1 + 2 files changed, 12 insertions(+) create mode 100644 tests/run-make/wasm-override-linker/Makefile create mode 100644 tests/run-make/wasm-override-linker/foo.rs diff --git a/tests/run-make/wasm-override-linker/Makefile b/tests/run-make/wasm-override-linker/Makefile new file mode 100644 index 0000000000000..d6163b1e04f1b --- /dev/null +++ b/tests/run-make/wasm-override-linker/Makefile @@ -0,0 +1,11 @@ +include ../../run-make-fulldeps/tools.mk + +ifeq ($(TARGET),wasm32-unknown-unknown) +all: + $(RUSTC) foo.rs --crate-type cdylib --target $(TARGET) -C linker=clang +else ifeq ($(TARGET),wasm64-unknown-unknown) +all: + $(RUSTC) foo.rs --crate-type cdylib --target $(TARGET) -C linker=clang +else +all: +endif diff --git a/tests/run-make/wasm-override-linker/foo.rs b/tests/run-make/wasm-override-linker/foo.rs new file mode 100644 index 0000000000000..4bd8276f34927 --- /dev/null +++ b/tests/run-make/wasm-override-linker/foo.rs @@ -0,0 +1 @@ +// empty file