fork/rust

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

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

master
655 B16 linesraw
1# ignore-cross-compile
2include ../tools.mk
3
4# Test that using rlibs and rmeta dep crates work together. Specifically, that
5# there can be both an rmeta and an rlib file and rustc will prefer the rmeta
6# file.
7#
8# This behavior is simply making sure this doesn't accidentally change; in this
9# case we want to make sure that the rlib isn't being used as that would cause
10# bugs in -Zbinary-dep-depinfo (see #68298).
11
12all:
13	$(RUSTC) rmeta_aux.rs --crate-type=rlib --emit link,metadata
14	$(RUSTC) lib.rs --crate-type=rlib --emit dep-info -Zbinary-dep-depinfo
15	$(CGREP) "librmeta_aux.rmeta" < $(TMPDIR)/lib.d
16	$(CGREP) -v "librmeta_aux.rlib" < $(TMPDIR)/lib.d