From: Scott Wood Date: Fri, 9 Mar 2012 05:15:43 +0000 (-0600) Subject: idlcomp: make valgrind optional X-Git-Url: http://git.buserror.net/cgi-bin/gitweb.cgi?p=polintos%2Fscott%2Fpriv.git;a=commitdiff_plain;h=98a8d68835d190b415639b35eb5c3be6d14dbb2f idlcomp: make valgrind optional Signed-off-by: Scott Wood --- diff --git a/Makefile.target b/Makefile.target index 0c09d33..0254b24 100644 --- a/Makefile.target +++ b/Makefile.target @@ -34,6 +34,12 @@ ifdef NOSMP 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 @@ -93,7 +99,7 @@ RM := rm -f 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