]> git.lizzy.rs Git - rust.git/blob - src/test/run-make-fulldeps/output-filename-overwrites-input/Makefile
Rollup merge of #101101 - RalfJung:read-pointer-as-bytes, r=oli-obk
[rust.git] / src / test / run-make-fulldeps / output-filename-overwrites-input / Makefile
1 include ../tools.mk
2
3 all:
4         cp foo.rs $(TMPDIR)/foo
5         $(RUSTC) $(TMPDIR)/foo -o $(TMPDIR)/foo 2>&1 \
6                 | $(CGREP) -e "the input file \".*foo\" would be overwritten by the generated executable"
7         cp bar.rs $(TMPDIR)/bar.rlib
8         $(RUSTC) $(TMPDIR)/bar.rlib -o $(TMPDIR)/bar.rlib 2>&1 \
9                 | $(CGREP) -e "the input file \".*bar.rlib\" would be overwritten by the generated executable"
10         $(RUSTC) foo.rs 2>&1 && $(RUSTC) -Z ls $(TMPDIR)/foo 2>&1
11         cp foo.rs $(TMPDIR)/foo.rs
12         $(RUSTC) $(TMPDIR)/foo.rs -o $(TMPDIR)/foo.rs 2>&1 \
13                 | $(CGREP) -e "the input file \".*foo.rs\" would be overwritten by the generated executable"