Skip to content

Commit 55d134d

Browse files
committed
Some tweaks to the valgrind makefile code
This reenables valgrinding of the compiler and prints a message when the user _is_ valgrinding
1 parent c05d96c commit 55d134d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Makefile.in

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,9 @@ ifneq ($(wildcard $(CFG_GIT_DIR)),)
144144
endif
145145
endif
146146

147-
ifdef CFG_DISABLE_VALGRIND
148-
$(info cfg: disabling valgrind (CFG_DISABLE_VALGRIND))
147+
ifdef CFG_ENABLE_VALGRIND
148+
$(info cfg: enabling valgrind (CFG_ENABLE_VALGRIND))
149+
else
149150
CFG_VALGRIND :=
150151
endif
151152
ifdef CFG_BAD_VALGRIND
@@ -368,7 +369,7 @@ endif
368369

369370
STAGE$(1)_T_$(2)_H_$(3) := \
370371
$$(Q)$$(call CFG_RUN_TARG,$(1), \
371-
## $$(CFG_VALGRIND_COMPILE$(1)) \
372+
$$(CFG_VALGRIND_COMPILE$(1)) \
372373
$$(HBIN$(1)_H_$(3))/rustc$$(X) \
373374
--cfg $$(CFGFLAG$(1)_T_$(2)_H_$(3)) \
374375
$$(CFG_RUSTC_FLAGS) $$(EXTRAFLAGS_STAGE$(1)) --target=$(2))

0 commit comments

Comments
 (0)