build: don't append valgrind CPPFLAGS if not installed
This commit is contained in:
parent
793ad9016a
commit
214042a170
@ -43,8 +43,8 @@ case $host_os in
|
|||||||
# These Homebrew packages may be keg-only, meaning that they won't be found
|
# These Homebrew packages may be keg-only, meaning that they won't be found
|
||||||
# in expected paths because they may conflict with system files. Ask
|
# in expected paths because they may conflict with system files. Ask
|
||||||
# Homebrew where each one is located, then adjust paths accordingly.
|
# Homebrew where each one is located, then adjust paths accordingly.
|
||||||
|
if $BREW list --versions valgrind >/dev/null; then
|
||||||
valgrind_prefix=`$BREW --prefix valgrind 2>/dev/null`
|
valgrind_prefix=`$BREW --prefix valgrind 2>/dev/null`
|
||||||
if test x$valgrind_prefix != x; then
|
|
||||||
VALGRIND_CPPFLAGS="-I$valgrind_prefix/include"
|
VALGRIND_CPPFLAGS="-I$valgrind_prefix/include"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user