2014-07-01 13:51:41 -05:00
|
|
|
# This test ensures that if you have the same rlib or dylib at two locations
|
|
|
|
# in the same path that you don't hit an assertion in the compiler.
|
|
|
|
#
|
|
|
|
# Note that this relies on `liburl` to be in the path somewhere else,
|
|
|
|
# and then our aux-built libraries will collide with liburl (they have
|
|
|
|
# the same version listed)
|
|
|
|
|
2022-08-22 19:00:00 -05:00
|
|
|
include ../tools.mk
|
2014-07-01 13:51:41 -05:00
|
|
|
|
|
|
|
all:
|
|
|
|
mkdir $(TMPDIR)/other
|
2016-04-04 21:07:08 -05:00
|
|
|
$(RUSTC) foo.rs --crate-type=dylib -C prefer-dynamic
|
2014-07-03 09:43:12 -05:00
|
|
|
mv $(call DYLIB,foo) $(TMPDIR)/other
|
2016-04-04 21:07:08 -05:00
|
|
|
$(RUSTC) foo.rs --crate-type=dylib -C prefer-dynamic
|
|
|
|
$(RUSTC) bar.rs -L $(TMPDIR)/other
|
2014-07-01 13:51:41 -05:00
|
|
|
rm -rf $(TMPDIR)
|
|
|
|
mkdir -p $(TMPDIR)/other
|
|
|
|
$(RUSTC) foo.rs --crate-type=rlib
|
2014-07-03 09:43:12 -05:00
|
|
|
mv $(TMPDIR)/libfoo.rlib $(TMPDIR)/other
|
|
|
|
$(RUSTC) foo.rs --crate-type=rlib
|
2016-04-04 21:07:08 -05:00
|
|
|
$(RUSTC) bar.rs -L $(TMPDIR)/other
|