2023-03-30 13:46:31 +00:00
|
|
|
# ignore-cross-compile
|
2014-07-01 18:51:41 +00: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-23 00:00:00 +00:00
|
|
|
include ../tools.mk
|
2014-07-01 18:51:41 +00:00
|
|
|
|
|
|
|
all:
|
|
|
|
mkdir $(TMPDIR)/other
|
2016-04-05 02:07:08 +00:00
|
|
|
$(RUSTC) foo.rs --crate-type=dylib -C prefer-dynamic
|
2014-07-03 14:43:12 +00:00
|
|
|
mv $(call DYLIB,foo) $(TMPDIR)/other
|
2016-04-05 02:07:08 +00:00
|
|
|
$(RUSTC) foo.rs --crate-type=dylib -C prefer-dynamic
|
|
|
|
$(RUSTC) bar.rs -L $(TMPDIR)/other
|
2014-07-01 18:51:41 +00:00
|
|
|
rm -rf $(TMPDIR)
|
|
|
|
mkdir -p $(TMPDIR)/other
|
|
|
|
$(RUSTC) foo.rs --crate-type=rlib
|
2014-07-03 14:43:12 +00:00
|
|
|
mv $(TMPDIR)/libfoo.rlib $(TMPDIR)/other
|
|
|
|
$(RUSTC) foo.rs --crate-type=rlib
|
2016-04-05 02:07:08 +00:00
|
|
|
$(RUSTC) bar.rs -L $(TMPDIR)/other
|