1 # Test the behavior of #[link(.., kind = "raw-dylib")] and #[link_ordinal] on windows-msvc
5 -include ../../run-make-fulldeps/tools.mk
8 $(call COMPILE_OBJ,"$(TMPDIR)"/exporter.obj,exporter.c)
10 $(CC) "$(TMPDIR)"/exporter.obj exporter.def -link -dll -out:"$(TMPDIR)"/exporter.dll
12 $(CC) "$(TMPDIR)"/exporter.obj exporter.def -shared -o "$(TMPDIR)"/exporter.dll
14 $(RUSTC) --crate-type lib --crate-name raw_dylib_test lib.rs
15 $(RUSTC) --crate-type bin driver.rs -L "$(TMPDIR)"
16 "$(TMPDIR)"/driver > "$(TMPDIR)"/output.txt
18 ifdef RUSTC_BLESS_TEST
19 cp "$(TMPDIR)"/output.txt output.txt
21 $(DIFF) output.txt "$(TMPDIR)"/output.txt