We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0233608 + 4fa4758 commit 8de6f99Copy full SHA for 8de6f99
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