From 715055bfdd8c5295d098a45c11b3782c012c6b51 Mon Sep 17 00:00:00 2001 From: buildbot Date: Wed, 10 Jun 2020 16:52:46 -0500 Subject: Add c++ to --enable-sanitize-checks option. --- config/clang-cxxflags | 2 +- configure.ac | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config/clang-cxxflags b/config/clang-cxxflags index 188570e..a37509f 100644 --- a/config/clang-cxxflags +++ b/config/clang-cxxflags @@ -143,7 +143,7 @@ if test "X-clang" = "X-$cxx_vendor" -o "X-Apple LLVM" = "X-$cxx_vendor"; then if test $cxx_vers_major -le 4; then DEBUG_CXXFLAGS= else - DEBUG_CXXFLAGS="-ftrapv -fno-common -fsanitize=address" + DEBUG_CXXFLAGS="-ftrapv -fno-common" fi ########### diff --git a/configure.ac b/configure.ac index cf1e463..9480033 100644 --- a/configure.ac +++ b/configure.ac @@ -338,8 +338,10 @@ if test "X$CC_BASENAME" = "Xclang"; then # NOTE: No sanity checking done here! if test -n "$CLANG_SANITIZE_LIST"; then H5_CFLAGS="$H5_CFLAGS -fno-omit-frame-pointer" + H5_CXXFLAGS="$H5_CXXFLAGS -fno-omit-frame-pointer" for sanitizer in `echo $CLANG_SANITIZE_LIST`; do H5_CFLAGS="$H5_CFLAGS -fsanitize=${sanitizer}" + H5_CXXFLAGS="$H5_CXXFLAGS -fsanitize=${sanitizer}" done fi fi -- cgit v0.12