We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 37fda98 + b9f92a8 commit d0c235eCopy full SHA for d0c235e
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