fork/rust
git clone https://git.julia.blue/fork/rust
73528e339aa
1.40.0
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 8-include ../tools.mk 9 10all: 11 mkdir $(TMPDIR)/other 12 $(RUSTC) foo.rs --crate-type=dylib -C prefer-dynamic 13 mv $(call DYLIB,foo) $(TMPDIR)/other 14 $(RUSTC) foo.rs --crate-type=dylib -C prefer-dynamic 15 $(RUSTC) bar.rs -L $(TMPDIR)/other 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 21 $(RUSTC) bar.rs -L $(TMPDIR)/other