Skip to content

Commit d4bcee9

Browse files
author
Tor Hovland
committed
Added a regression test.
1 parent 0b378f0 commit d4bcee9

File tree

1 file changed

+10
-0
lines changed
  • src/test/run-make/issue-10971-temps-dir

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
include ../../run-make-fulldeps/tools.mk
2+
3+
# Regression test for issue #10971
4+
# Running two invocations in parallel would overwrite each other's temp files.
5+
6+
all:
7+
touch $(TMPDIR)/lib.rs
8+
9+
$(RUSTC) --crate-type=lib --temps-dir=$(TMPDIR)/temp1 $(TMPDIR)/lib.rs & \
10+
$(RUSTC) --crate-type=cdylib --temps-dir=$(TMPDIR)/temp2 $(TMPDIR)/lib.rs

0 commit comments

Comments
 (0)