1 # Test the behavior of #[link(.., kind = "raw-dylib")], #[link_ordinal], and alternative calling conventions on i686 windows.
6 -include ../../run-make-fulldeps/tools.mk
9 $(call COMPILE_OBJ,"$(TMPDIR)"/exporter.obj,exporter.c)
11 $(CC) "$(TMPDIR)"/exporter.obj exporter-msvc.def -link -dll -out:"$(TMPDIR)"/exporter.dll
13 $(CC) "$(TMPDIR)"/exporter.obj exporter-gnu.def -shared -o "$(TMPDIR)"/exporter.dll
15 $(RUSTC) --crate-type lib --crate-name raw_dylib_test lib.rs
16 $(RUSTC) --crate-type bin driver.rs -L "$(TMPDIR)"
17 "$(TMPDIR)"/driver > "$(TMPDIR)"/actual_output.txt
19 ifdef RUSTC_BLESS_TEST
20 cp "$(TMPDIR)"/actual_output.txt expected_output.txt
22 $(DIFF) expected_output.txt "$(TMPDIR)"/actual_output.txt