]> git.lizzy.rs Git - rust.git/blob - src/test/run-make/raw-dylib-alt-calling-convention/Makefile
Auto merge of #86873 - nikic:opaque-ptrs, r=nagisa
[rust.git] / src / test / run-make / raw-dylib-alt-calling-convention / Makefile
1 # Test the behavior of #[link(.., kind = "raw-dylib")] with alternative calling conventions.
2
3 # only-i686-pc-windows-msvc
4
5 -include ../../run-make-fulldeps/tools.mk
6
7 all:
8         $(call COMPILE_OBJ,"$(TMPDIR)"/extern.obj,extern.c)
9         $(CC) "$(TMPDIR)"/extern.obj -link -dll -out:"$(TMPDIR)"/extern.dll
10         $(RUSTC) --crate-type lib --crate-name raw_dylib_alt_calling_convention_test lib.rs
11         $(RUSTC) --crate-type bin driver.rs -L "$(TMPDIR)"
12         "$(TMPDIR)"/driver > "$(TMPDIR)"/output.txt
13
14 ifdef RUSTC_BLESS_TEST
15         cp "$(TMPDIR)"/output.txt output.txt
16 else
17         $(DIFF) output.txt "$(TMPDIR)"/output.txt
18 endif