]> git.lizzy.rs Git - rust.git/blob - tests/run-make/rlib-format-packed-bundled-libs-2/Makefile
Test drop_tracking_mir before querying generator.
[rust.git] / tests / run-make / rlib-format-packed-bundled-libs-2 / Makefile
1 -include ../../run-make-fulldeps/tools.mk
2
3 # ignore-cross-compile
4
5 # Make sure -Zpacked_bundled_libs is compatible with verbatim.
6
7 # We're using the llvm-nm instead of the system nm to ensure it is compatible
8 # with the LLVM bitcode generated by rustc.
9 NM = "$(LLVM_BIN_DIR)"/llvm-nm
10
11 all:
12         # Build strange-named dep.
13         $(RUSTC) native_dep.rs --crate-type=staticlib -o $(TMPDIR)/native_dep.ext
14
15         $(RUSTC) rust_dep.rs --crate-type=rlib -Zpacked_bundled_libs
16         $(NM) $(TMPDIR)/librust_dep.rlib | $(CGREP) -e "U.*native_f1"
17         $(AR) t $(TMPDIR)/librust_dep.rlib | $(CGREP) "native_dep.ext"
18
19         # Make sure compiler doesn't use files, that it shouldn't know about.
20         rm $(TMPDIR)/native_dep.ext
21
22         $(RUSTC) main.rs --extern rust_dep=$(TMPDIR)/librust_dep.rlib -Zpacked_bundled_libs