]> git.buserror.net Git - polintos/scott/priv.git/commitdiff
idlcomp: make valgrind optional
authorScott Wood <scott@buserror.net>
Fri, 9 Mar 2012 05:15:43 +0000 (23:15 -0600)
committerScott Wood <scott@buserror.net>
Fri, 9 Mar 2012 05:18:06 +0000 (23:18 -0600)
Signed-off-by: Scott Wood <scott@buserror.net>
Makefile.target

index 0c09d332f92a69aaffcf3942a49f1d5b692cc125..0254b241da50ce97430976c312cac5833737ebb5 100644 (file)
@@ -34,6 +34,12 @@ ifdef NOSMP
 DEFS += -D_LL_NOSMP
 endif
 
 DEFS += -D_LL_NOSMP
 endif
 
+ifdef USEVALGRIND
+VALGRIND ?= valgrind -q
+else
+VALGRIND :=
+endif
+
 # C++ prohibits defeferencing a NULL non-POD pointer (and thus
 # prohibits using offsetof on non-POD types, even though there's no
 # good reason to disallow it).  Some headers use offsetof on non-POD
 # C++ prohibits defeferencing a NULL non-POD pointer (and thus
 # prohibits using offsetof on non-POD types, even though there's no
 # good reason to disallow it).  Some headers use offsetof on non-POD
@@ -93,7 +99,7 @@ RM := rm -f
 RMDIR := rm -rf
 LN := ln -s
 IDLC_target := $(BASEBUILDDIR)/build/idlcomp/idlc
 RMDIR := rm -rf
 LN := ln -s
 IDLC_target := $(BASEBUILDDIR)/build/idlcomp/idlc
-IDLC := valgrind -q $(BASEBUILDDIR)/build/idlcomp/idlc
+IDLC := $(VALGRIND) $(BASEBUILDDIR)/build/idlcomp/idlc
 TOUCH := touch
 BISON := bison
 FLEX := flex
 TOUCH := touch
 BISON := bison
 FLEX := flex