Skip to content

Commit 7f4665c

Browse files
committed
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.
2 parents 5ff4442 + e3df519 commit 7f4665c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
-include ../tools.mk
22

33
all:
4-
$(rustc) -o foo foo.rs
4+
cp foo.rs $(TMPDIR)
5+
cd $(TMPDIR) && $(RUSTC) -o foo foo.rs
6+
$(call RUN,foo)

0 commit comments

Comments
 (0)