diff --git a/projects/librawspeed/build.sh b/projects/librawspeed/build.sh index c9c6cd257..7a7271031 100755 --- a/projects/librawspeed/build.sh +++ b/projects/librawspeed/build.sh @@ -17,6 +17,11 @@ set -e +if [[ $SANITIZER = *undefined* ]]; then + CFLAGS="$CFLAGS -fsanitize=unsigned-integer-overflow -fno-sanitize-recover=unsigned-integer-overflow" + CXXFLAGS="$CXXFLAGS -fsanitize=unsigned-integer-overflow -fno-sanitize-recover=unsigned-integer-overflow" +fi + cd "$WORK" mkdir build cd build