]> git.lizzy.rs Git - rust.git/blob - src/test/run-make/output-filename-overwrites-input/Makefile
Add an unstable FileTypeExt extension trait for Windows
[rust.git] / src / test / run-make / output-filename-overwrites-input / Makefile
1 -include ../tools.mk
2
3 all:
4         cp foo.rs $(TMPDIR)/foo
5         $(RUSTC) $(TMPDIR)/foo 2>&1 \
6                 | $(CGREP) -e "the input file \".*foo\" would be overwritten by the generated executable"
7         $(RUSTC) foo.rs 2>&1 && $(RUSTC) -Z ls $(TMPDIR)/foo 2>&1
8         cp foo.rs $(TMPDIR)/foo.rs
9         $(RUSTC) $(TMPDIR)/foo.rs -o $(TMPDIR)/foo.rs 2>&1 \
10                 | $(CGREP) -e "the input file \".*foo.rs\" would be overwritten by the generated executable"