zeek/auxil/spicy/tests/Scripts/have-sanitizer
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

10 lines
285 B
Bash
Executable File

#! /bin/sh
#
# Returns success if we Spicy has been compiled with address sanitizer support.
test "${USING_BUILD_DIRECTORY}" = 1 || exit 1
base=$(cd $(dirname $0) && pwd)
cache=$(${base}/build-directory)/CMakeCache.txt
test -e ${cache} && grep -q "USE_SANITIZERS:STRING=.*" ${cache}