diff --git a/sys/sanitize.sh b/sys/sanitize.sh index a42d6c63f4..8784cecf71 100755 --- a/sys/sanitize.sh +++ b/sys/sanitize.sh @@ -44,6 +44,8 @@ for a in $SANITIZE ; do export CFLAGS="${CFLAGS} -fsanitize=$a" if [ "$a" = leak ]; then HAVE_LEAKS=0 + elif [ "$a" = address ]; then + export CFLAGS="${CFLAGS} -D__ASAN__=1" fi done if [ "${HAVE_LEAKS}" = 0 ]; then