]> git.proxmox.com Git - rustc.git/blame - src/test/run-make-fulldeps/issue-11908/Makefile
New upstream version 1.65.0+dfsg1
[rustc.git] / src / test / run-make-fulldeps / issue-11908 / Makefile
CommitLineData
1a4d82fc
JJ
1# This test ensures that if you have the same rlib or dylib at two locations
2# in the same path that you don't hit an assertion in the compiler.
3#
4# Note that this relies on `liburl` to be in the path somewhere else,
5# and then our aux-built libraries will collide with liburl (they have
6# the same version listed)
7
f2b60f7d 8include ../tools.mk
1a4d82fc
JJ
9
10all:
11 mkdir $(TMPDIR)/other
a7813a04 12 $(RUSTC) foo.rs --crate-type=dylib -C prefer-dynamic
1a4d82fc 13 mv $(call DYLIB,foo) $(TMPDIR)/other
a7813a04
XL
14 $(RUSTC) foo.rs --crate-type=dylib -C prefer-dynamic
15 $(RUSTC) bar.rs -L $(TMPDIR)/other
1a4d82fc
JJ
16 rm -rf $(TMPDIR)
17 mkdir -p $(TMPDIR)/other
18 $(RUSTC) foo.rs --crate-type=rlib
19 mv $(TMPDIR)/libfoo.rlib $(TMPDIR)/other
20 $(RUSTC) foo.rs --crate-type=rlib
a7813a04 21 $(RUSTC) bar.rs -L $(TMPDIR)/other