Skip to content

Commit

Permalink
Fix run-make/bare-outfile test
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
wthrowe committed Oct 3, 2015
1 parent 54f7b1d commit e3df519
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion 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)

0 comments on commit e3df519

Please sign in to comment.