Skip to content

Commit 857b19d

Browse files
author
Tor Hovland
committed
Added a regression test.
1 parent 9a60e47 commit 857b19d

File tree

1 file changed

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

1 file changed

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

0 commit comments

Comments
 (0)