From 6f0069ae1e1531af2da3f0badefcb088e2b2af40 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Wed, 22 May 2019 15:41:20 +0200 Subject: [PATCH] buildsys: make valgrind=1 to enable valgrind support Signed-off-by: Wolfgang Bumiller --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 2e0c20a5..1dc21d7d 100644 --- a/Makefile +++ b/Makefile @@ -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))