We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 085acd0 commit 93d8d2eCopy full SHA for 93d8d2e
tests/run-make/wasm-override-linker/Makefile
@@ -0,0 +1,11 @@
1
+include ../tools.mk
2
+
3
+ifeq ($(TARGET),wasm32-unknown-unknown)
4
+all:
5
+ $(RUSTC) foo.rs --crate-type cdylib --target $(TARGET) -C linker=clang
6
+else ifeq ($(TARGET),wasm64-unknown-unknown)
7
8
9
+else
10
11
+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