about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/test/run-make/bare-outfile/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/run-make/bare-outfile/Makefile b/src/test/run-make/bare-outfile/Makefile
index 97d09c837c1..baa4c1c0237 100644
--- a/src/test/run-make/bare-outfile/Makefile
+++ b/src/test/run-make/bare-outfile/Makefile
@@ -1,4 +1,6 @@
 -include ../tools.mk
 
 all:
-	$(rustc) -o foo foo.rs
+	cp foo.rs $(TMPDIR)
+	cd $(TMPDIR) && $(RUSTC) -o foo foo.rs
+	$(call RUN,foo)