Added a regression test.

This commit is contained in:
Tor Hovland 2021-04-04 15:54:21 +02:00
parent 0b378f008b
commit d4bcee9638

View File

@ -0,0 +1,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 --temps-dir=$(TMPDIR)/temp1 $(TMPDIR)/lib.rs & \
$(RUSTC) --crate-type=cdylib --temps-dir=$(TMPDIR)/temp2 $(TMPDIR)/lib.rs