We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 085acd0 commit 4fa4758Copy full SHA for 4fa4758
tests/run-make/wasm-override-linker/Makefile
@@ -0,0 +1,13 @@
1
+# needs-matching-clang
2
+
3
+include ../tools.mk
4
5
+ifeq ($(TARGET),wasm32-unknown-unknown)
6
+all:
7
+ $(RUSTC) foo.rs --crate-type cdylib --target $(TARGET) -C linker=$(CLANG)
8
+else ifeq ($(TARGET),wasm64-unknown-unknown)
9
10
11
+else
12
13
+endif
tests/run-make/wasm-override-linker/foo.rs
@@ -0,0 +1,6 @@
+#![crate_type = "cdylib"]
+#[no_mangle]
+pub extern "C" fn add(a: i32, b: i32) -> i32 {
+ a + b
+}
0 commit comments