]> git.lizzy.rs Git - rust.git/blob - tests/run-make-fulldeps/issue-11908/Makefile
Rollup merge of #106709 - khuey:disable_split_dwarf_inlining_by_default, r=davidtwco
[rust.git] / tests / run-make-fulldeps / issue-11908 / Makefile
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
10 all:
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