fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
994 B22 linesraw
1# Tests that raw-dylib cross compilation works correctly
2
3# only-gnu
4# needs-i686-dlltool
5# needs-x86_64-dlltool
6
7# i686 dlltool.exe can't product x64 binaries.
8# ignore-i686-pc-windows-gnu
9
10include ../tools.mk
11
12all:
13	# Build as x86 and make sure that we have x86 objects only.
14	$(RUSTC) --crate-type lib --crate-name i686_raw_dylib_test --target i686-pc-windows-gnu lib.rs
15	"$(LLVM_BIN_DIR)"/llvm-objdump -a $(TMPDIR)/libi686_raw_dylib_test.rlib > $(TMPDIR)/i686.objdump.txt
16	$(CGREP) "file format coff-i386" < $(TMPDIR)/i686.objdump.txt
17	$(CGREP) -v "file format coff-x86-64" < $(TMPDIR)/i686.objdump.txt
18	# Build as x64 and make sure that we have x64 objects only.
19	$(RUSTC) --crate-type lib --crate-name x64_raw_dylib_test --target x86_64-pc-windows-gnu lib.rs
20	"$(LLVM_BIN_DIR)"/llvm-objdump -a $(TMPDIR)/libx64_raw_dylib_test.rlib > $(TMPDIR)/x64.objdump.txt
21	$(CGREP) "file format coff-x86-64" < $(TMPDIR)/x64.objdump.txt
22	$(CGREP) -v "file format coff-i386" < $(TMPDIR)/x64.objdump.txt