6 # I *really* don't want to deal with a cross-platform way to compare file sizes,
7 # tests in `make` sort of are awful
10 # Make sure no warnings about "unknown CPU `native`" were emitted
11 if
[ "$$(wc -c $(TMPDIR)/out.log | cut -d' ' -f 1)" = "0" ]; then \
12 echo no warnings generated
; \
19 $(RUSTC
) foo.rs
-C target-cpu
=native
2>&1 | tee
$(TMPDIR
)/out.log