2023-03-30 08:46:31 -05:00
|
|
|
# ignore-cross-compile
|
2022-08-23 00:00:00 +00:00
|
|
|
include ../tools.mk
|
2017-12-18 15:35:45 +00:00
|
|
|
|
|
|
|
all:
|
|
|
|
cp foo.rs $(TMPDIR)/foo
|
2018-01-29 14:38:50 +00:00
|
|
|
$(RUSTC) $(TMPDIR)/foo -o $(TMPDIR)/foo 2>&1 \
|
2017-12-18 15:35:45 +00:00
|
|
|
| $(CGREP) -e "the input file \".*foo\" would be overwritten by the generated executable"
|
2018-01-29 14:38:50 +00: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 15:35:45 +00: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"
|