Commit 87abd65 1 parent db9a84a commit 87abd65 Copy full SHA for 87abd65
File tree 3 files changed +14
-0
lines changed
src/test/run-make-fulldeps
mingw-export-call-convention
3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
1
+ #![ crate_type = "cdylib" ]
2
+
3
+ #[ no_mangle]
4
+ pub extern "system" fn bar ( ) { }
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ ifdef IS_MSVC
48
48
STATICLIB = $(TMPDIR ) /$(1 ) .lib
49
49
STATICLIB_GLOB = $(1 ) *.lib
50
50
else
51
+ IMPLIB = $(TMPDIR ) /lib$(1 ) .dll.a
51
52
STATICLIB = $(TMPDIR ) /lib$(1 ) .a
52
53
STATICLIB_GLOB = lib$(1 ) *.a
53
54
endif
You can’t perform that action at this time.
0 commit comments