Don't run the stage0 compiler under valgrind when CFG_VALGRIND_COMPILE

There's nothing to be done for stage0 at this point.
This commit is contained in:
Brian Anderson 2011-08-26 11:11:49 -07:00
parent 4133e3ec82
commit e3d3aaadaa

View File

@ -186,8 +186,15 @@ SREQ$(1) = stage$(1)/rustc$(X) \
$$(MKFILES)
endif
ifeq ($(1),0)
# Don't run the the stage0 compiler under valgrind - that ship has sailed
CFG_VALGRIND_COMPILE$(1) =
else
CFG_VALGRIND_COMPILE$(1) = $$(CFG_VALGRIND_COMPILE)
endif
STAGE$(1) := $$(Q)$$(call CFG_RUN_TARG,stage$(1), \
$$(CFG_VALGRIND_COMPILE) stage$(1)/rustc$$(X) \
$$(CFG_VALGRIND_COMPILE$(1)) stage$(1)/rustc$$(X) \
$$(CFG_RUSTC_FLAGS))
endef