]> git.proxmox.com Git - proxmox-backup.git/commitdiff
buildsys: make valgrind=1 to enable valgrind support
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 22 May 2019 13:41:20 +0000 (15:41 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 23 May 2019 07:49:10 +0000 (09:49 +0200)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Makefile

index 2e0c20a5a431ed6b0841317c52465ab47e234f3c..1dc21d7d0740152f6cccfdd9b6bc79a18217aaa4 100644 (file)
--- 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))