2023-03-30 08:46:31 -05:00
|
|
|
# ignore-cross-compile
|
2022-08-22 19:00:00 -05:00
|
|
|
include ../tools.mk
|
2017-12-18 09:35:45 -06:00
|
|
|
|
|
|
|
all:
|
|
|
|
cp foo.rs $(TMPDIR)/foo
|
2018-01-29 08:38:50 -06:00
|
|
|
$(RUSTC) $(TMPDIR)/foo -o $(TMPDIR)/foo 2>&1 \
|
2017-12-18 09:35:45 -06:00
|
|
|
| $(CGREP) -e "the input file \".*foo\" would be overwritten by the generated executable"
|
2018-01-29 08:38:50 -06:00
|
|
|
cp bar.rs $(TMPDIR)/bar.rlib
|
|
|
|
$(RUSTC) $(TMPDIR)/bar.rlib -o $(TMPDIR)/bar.rlib 2>&1 \
|
|
|
|
| $(CGREP) -e "the input file \".*bar.rlib\" would be overwritten by the generated executable"
|
2017-12-18 09:35:45 -06:00
|
|
|
$(RUSTC) foo.rs 2>&1 && $(RUSTC) -Z ls $(TMPDIR)/foo 2>&1
|
|
|
|
cp foo.rs $(TMPDIR)/foo.rs
|
|
|
|
$(RUSTC) $(TMPDIR)/foo.rs -o $(TMPDIR)/foo.rs 2>&1 \
|
|
|
|
| $(CGREP) -e "the input file \".*foo.rs\" would be overwritten by the generated executable"
|