1 # Test the behavior of #[link(.., kind = "raw-dylib")] with alternative calling conventions.
6 include ../../run-make-fulldeps/tools.mk
9 $(RUSTC) --crate-type lib --crate-name raw_dylib_alt_calling_convention_test lib.rs
10 $(RUSTC) --crate-type bin driver.rs -L "$(TMPDIR)"
11 $(call COMPILE_OBJ,"$(TMPDIR)"/extern.obj,extern.c)
13 $(CC) "$(TMPDIR)"/extern.obj -link -dll -out:"$(TMPDIR)"/extern.dll -noimplib
15 $(CC) "$(TMPDIR)"/extern.obj -shared -o "$(TMPDIR)"/extern.dll
18 "$(TMPDIR)"/driver > "$(TMPDIR)"/output.txt
19 ifdef RUSTC_BLESS_TEST
20 cp "$(TMPDIR)"/output.txt output.txt
22 $(DIFF) output.txt "$(TMPDIR)"/output.txt
26 "$(TMPDIR)"/driver true > "$(TMPDIR)"/output.msvc.txt
27 ifdef RUSTC_BLESS_TEST
28 cp "$(TMPDIR)"/output.msvc.txt output.msvc.txt
30 $(DIFF) output.msvc.txt "$(TMPDIR)"/output.msvc.txt