Added a regression test.
This commit is contained in:
parent
0b378f008b
commit
d4bcee9638
10
src/test/run-make/issue-10971-temps-dir/Makefile
Normal file
10
src/test/run-make/issue-10971-temps-dir/Makefile
Normal 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
|
Loading…
Reference in New Issue
Block a user