summaryrefslogtreecommitdiffstats
path: root/src/test/run-make/issue-10971-temps-dir/Makefile
blob: 5ce27192603e2ee91805a88ea0fd346ad7c83cd3 (plain)
1
2
3
4
5
6
7
8
9
10
-include ../../run-make-fulldeps/tools.mk

# Regression test for issue #10971
# Running two invocations in parallel would overwrite each other's temp files.

all:
	touch $(TMPDIR)/lib.rs

	$(RUSTC) --crate-type=lib -Z temps-dir=$(TMPDIR)/temp1 $(TMPDIR)/lib.rs & \
	$(RUSTC) --crate-type=staticlib -Z temps-dir=$(TMPDIR)/temp2 $(TMPDIR)/lib.rs