about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-10-04 19:50:50 +0000
committerbors <bors@rust-lang.org>2015-10-04 19:50:50 +0000
commit7f4665c3e683b343fb3a44fd3849b6b140e708d5 (patch)
treefa9da30de454915541d72f72dc91c08e9d0912ed
parent5ff4442a3f46f7a3ca0dc291727c546c3b6dde8d (diff)
parente3df5192258fba79f58a86d1fdcda5f38a816028 (diff)
Auto merge of #28806 - wthrowe:bare-outfile-fix, r=alexcrichton
The reason this was not failing is fascinating.  The variable $(rustc)
is empty, so the make recipe was expanded as " -o foo foo.rs".  make
interpreted this as an instruction to run the command "o foo foo.rs"
and ignore any failure that occurred, because it uses a leading '-' on
a command to signal that behavior.
-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)