summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbuildbot <buildbot@bobcat.ad.hdfgroup.org>2020-06-10 21:52:46 (GMT)
committerbuildbot <buildbot@bobcat.ad.hdfgroup.org>2020-06-10 21:52:46 (GMT)
commit715055bfdd8c5295d098a45c11b3782c012c6b51 (patch)
tree6d8ab385565897f935f52aa6e72c6bdc48eddf23
parent77efb340a1b06465587ca9dd4599271409a86a44 (diff)
downloadhdf5-715055bfdd8c5295d098a45c11b3782c012c6b51.zip
hdf5-715055bfdd8c5295d098a45c11b3782c012c6b51.tar.gz
hdf5-715055bfdd8c5295d098a45c11b3782c012c6b51.tar.bz2
Add c++ to --enable-sanitize-checks option.
-rw-r--r--config/clang-cxxflags2
-rw-r--r--configure.ac2
2 files changed, 3 insertions, 1 deletions
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