summaryrefslogtreecommitdiffstats
path: root/tests/run-make/extern-multiple-copies2/Makefile
blob: 708b1c1b5409f2de01b9031d485f5469b5ba46c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
# ignore-cross-compile
include ../tools.mk

all:
	$(RUSTC) foo1.rs
	$(RUSTC) foo2.rs
	mkdir $(TMPDIR)/foo
	cp $(TMPDIR)/libfoo1.rlib $(TMPDIR)/foo/libfoo1.rlib
	$(RUSTC) bar.rs \
		--extern foo1=$(TMPDIR)/foo/libfoo1.rlib \
		--extern foo2=$(TMPDIR)/libfoo2.rlib