]> git.lizzy.rs Git - rust.git/blob - mk/perf.mk
doc: 'if' expressions no longer require parens
[rust.git] / mk / perf.mk
1
2 ifdef CFG_PERF_TOOL
3 rustc-perf$(X): stage2/bin/rustc$(X)
4         @$(call E, perf compile: $@)
5         $(PERF_STAGE1) -o $@ $(COMPILER_CRATE) >rustc-perf.err 2>&1
6         $(Q)rm -f $@
7 else
8 rustc-perf$(X): stage2/bin/rustc$(X)
9         $(Q)touch $@
10 endif
11
12 perf: check-stage2-perf rustc-perf$(X)
13         $(Q)find test/perf -name \*.err | xargs cat
14         $(Q)cat rustc-perf.err