buildsys: make valgrind=1 to enable valgrind support

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2019-05-22 15:41:20 +02:00
parent 9cdda3f7c7
commit 6f0069ae1e
1 changed files with 4 additions and 0 deletions

View File

@ -25,6 +25,10 @@ else
COMPILEDIR := target/debug
endif
ifeq ($(valgrind), yes)
CARGO_BUILD_ARGS += --features valgrind
endif
COMPILED_BINS := \
$(addprefix $(COMPILEDIR)/,$(USR_BIN) $(USR_SBIN) $(SERVICE_BIN))