scripts/build: support $VAL levels for valgrind other than 1

Signed-off-by: James Yonan <james@openvpn.net>
This commit is contained in:
James Yonan
2023-09-03 16:48:40 -06:00
parent 5711be6b97
commit 7fe39be0df

View File

@@ -320,7 +320,7 @@ else
fi
# Valgrind -- but only if ASAN is not enabled
if [ "$ASAN" = "" -a "$VAL" = "1" ]; then
if [ "$ASAN" = "" -a "$VAL" ]; then
CPPFLAGS="$CPPFLAGS -DHAVE_VALGRIND"
fi