We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db9a84a commit 87abd65Copy full SHA for 87abd65
src/test/run-make-fulldeps/mingw-export-call-convention/Makefile
@@ -0,0 +1,9 @@
1
+include ../tools.mk
2
+
3
+# only-windows-gnu
4
5
+all:
6
+ $(RUSTC) foo.rs
7
+ # FIXME: we should make sure __stdcall calling convention is used here
8
+ # but that only works with LLD right now
9
+ nm -g "$(call IMPLIB,foo)" | $(CGREP) bar
src/test/run-make-fulldeps/mingw-export-call-convention/foo.rs
@@ -0,0 +1,4 @@
+#![crate_type = "cdylib"]
+#[no_mangle]
+pub extern "system" fn bar() {}
src/test/run-make-fulldeps/tools.mk
@@ -48,6 +48,7 @@ ifdef IS_MSVC
48
STATICLIB = $(TMPDIR)/$(1).lib
49
STATICLIB_GLOB = $(1)*.lib
50
else
51
+IMPLIB = $(TMPDIR)/lib$(1).dll.a
52
STATICLIB = $(TMPDIR)/lib$(1).a
53
STATICLIB_GLOB = lib$(1)*.a
54
endif
0 commit comments