summaryrefslogtreecommitdiffstats
path: root/tests/run-make/wasm-override-linker/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-make/wasm-override-linker/Makefile')
-rw-r--r--tests/run-make/wasm-override-linker/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/run-make/wasm-override-linker/Makefile b/tests/run-make/wasm-override-linker/Makefile
new file mode 100644
index 000000000..52339f926
--- /dev/null
+++ b/tests/run-make/wasm-override-linker/Makefile
@@ -0,0 +1,13 @@
+# needs-matching-clang
+
+include ../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