]> git.lizzy.rs Git - rust.git/blob - src/test/run-make-fulldeps/target-cpu-native/Makefile
Rollup merge of #100307 - nnethercote:fix-96847, r=cjgillot
[rust.git] / src / test / run-make-fulldeps / target-cpu-native / Makefile
1 -include ../tools.mk
2
3 # only-linux
4 # only-x86_64
5 #
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
8
9 all: $(TMPDIR)/out.log
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; \
13         else \
14           exit 1; \
15         fi
16
17
18 $(TMPDIR)/out.log:
19         $(RUSTC) foo.rs -C target-cpu=native 2>&1 | tee $(TMPDIR)/out.log
20         $(call RUN,foo)