fork/rust

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

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

master
762 B22 linesraw
1# ignore-cross-compile
2# This test ensures that if you have the same rlib or dylib at two locations
3# in the same path that you don't hit an assertion in the compiler.
4#
5# Note that this relies on `liburl` to be in the path somewhere else,
6# and then our aux-built libraries will collide with liburl (they have
7# the same version listed)
8
9include ../tools.mk
10
11all:
12	mkdir $(TMPDIR)/other
13	$(RUSTC) foo.rs --crate-type=dylib -C prefer-dynamic
14	mv $(call DYLIB,foo) $(TMPDIR)/other
15	$(RUSTC) foo.rs --crate-type=dylib -C prefer-dynamic
16	$(RUSTC) bar.rs -L $(TMPDIR)/other
17	rm -rf $(TMPDIR)
18	mkdir -p $(TMPDIR)/other
19	$(RUSTC) foo.rs --crate-type=rlib
20	mv $(TMPDIR)/libfoo.rlib $(TMPDIR)/other
21	$(RUSTC) foo.rs --crate-type=rlib
22	$(RUSTC) bar.rs -L $(TMPDIR)/other