summaryrefslogtreecommitdiffstats
path: root/tests/run-make/compiler-lookup-paths-2/Makefile
blob: d4ff7d8daabf94af918b1e3e9041daca12beb016 (plain)
1
2
3
4
5
6
7
8
include ../tools.mk

all:
	mkdir -p $(TMPDIR)/a $(TMPDIR)/b
	$(RUSTC) a.rs && mv $(TMPDIR)/liba.rlib $(TMPDIR)/a
	$(RUSTC) b.rs -L $(TMPDIR)/a && mv $(TMPDIR)/libb.rlib $(TMPDIR)/b
	$(RUSTC) c.rs -L crate=$(TMPDIR)/b -L dependency=$(TMPDIR)/a \
		&& exit 1 || exit 0