summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLarry Knox <lrknox@hdfgroup.org>2020-06-10 23:53:45 (GMT)
committerLarry Knox <lrknox@hdfgroup.org>2020-06-10 23:53:45 (GMT)
commit1e6b6b4bc6e56cfd63268d1823e0ab4baca00234 (patch)
treec19b2eecbc6c7303bb0eadf41b1ace13986df138
parenta56da14860ef436ee2d8f2aa00766c02889e8b6b (diff)
parenta33667faf226f5d8c9633bf537893e8fce1bf1f6 (diff)
downloadhdf5-1e6b6b4bc6e56cfd63268d1823e0ab4baca00234.zip
hdf5-1e6b6b4bc6e56cfd63268d1823e0ab4baca00234.tar.gz
hdf5-1e6b6b4bc6e56cfd63268d1823e0ab4baca00234.tar.bz2
Merge pull request #2639 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:develop to develop
* commit 'a33667faf226f5d8c9633bf537893e8fce1bf1f6': 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