]> git.proxmox.com Git - rustc.git/blame - tests/run-make/output-filename-overwrites-input/Makefile
New upstream version 1.70.0+dfsg1
[rustc.git] / tests / run-make / output-filename-overwrites-input / Makefile
CommitLineData
353b0b11 1# ignore-cross-compile
f2b60f7d 2include ../tools.mk
ff7c6d11
XL
3
4all:
5 cp foo.rs $(TMPDIR)/foo
2c00a5a8 6 $(RUSTC) $(TMPDIR)/foo -o $(TMPDIR)/foo 2>&1 \
ff7c6d11 7 | $(CGREP) -e "the input file \".*foo\" would be overwritten by the generated executable"
2c00a5a8
XL
8 cp bar.rs $(TMPDIR)/bar.rlib
9 $(RUSTC) $(TMPDIR)/bar.rlib -o $(TMPDIR)/bar.rlib 2>&1 \
10 | $(CGREP) -e "the input file \".*bar.rlib\" would be overwritten by the generated executable"
ff7c6d11
XL
11 $(RUSTC) foo.rs 2>&1 && $(RUSTC) -Z ls $(TMPDIR)/foo 2>&1
12 cp foo.rs $(TMPDIR)/foo.rs
13 $(RUSTC) $(TMPDIR)/foo.rs -o $(TMPDIR)/foo.rs 2>&1 \
14 | $(CGREP) -e "the input file \".*foo.rs\" would be overwritten by the generated executable"