3 # Build Skia with one of Clang's many sanitizers.
5 # $ tools/xsan_build {address,thread,undefined,etc.} [any other flags to pass to make...]
7 # This script assumes the use of Clang >=3.2.
9 # For more information, see:
10 # http://clang.llvm.org/docs/UsersManual.html#controlling-code-generation
18 export CC="$(which clang)"
19 export CXX="$(which clang++)"
21 if [[ -z "${CC}" ]] || [[ -z "${CXX}" ]]; then
22 echo "Couldn't find Clang on this machine!"
30 export GYP_DEFINES="skia_sanitizer=$sanitizer ${GYP_DEFINES}"