0
0
mirror of https://github.com/rust-lang/rust.git synced 2024-11-29 10:05:55 +01:00
rust/mk/perf.mk

13 lines
238 B
Makefile

ifdef CFG_PERF_TOOL
rustc-perf$(X): stage2/rustc$(X)
@$(call E, perf compile: $@)
$(PERF_STAGE1) -L stage2 -o $@ $(COMPILER_CRATE)
rm -f $@
else
rustc-perf$(X): stage2/rustc$(X)
touch $@
endif
perf: check-stage2-perf rustc-perf$(X)