summaryrefslogtreecommitdiffstats
path: root/config/clang-cxxflags
diff options
context:
space:
mode:
authorLarry Knox <lrknox@hdfgroup.org>2020-06-09 21:12:31 (GMT)
committerLarry Knox <lrknox@hdfgroup.org>2020-06-09 21:12:31 (GMT)
commit32c353ed4360630646e0bfd40387aa7b4fd403ea (patch)
treefa0e9e0638459b9f66a472344b82c4b7ad1cddfb /config/clang-cxxflags
parentbc51dea95ac97884874a5a8dbf06d90e61ffa0aa (diff)
downloadhdf5-32c353ed4360630646e0bfd40387aa7b4fd403ea.zip
hdf5-32c353ed4360630646e0bfd40387aa7b4fd403ea.tar.gz
hdf5-32c353ed4360630646e0bfd40387aa7b4fd403ea.tar.bz2
Update new clang files to not pick up clang as vendor for pgCC.
Add new files to MANIFEST Temporary demotion of 2 -Werror warning flags that fail on macos 10.12 Remove Production flag unknown to Apple clang.
Diffstat (limited to 'config/clang-cxxflags')
-rw-r--r--config/clang-cxxflags13
1 files changed, 5 insertions, 8 deletions
diff --git a/config/clang-cxxflags b/config/clang-cxxflags
index 9c283cd..188570e 100644
--- a/config/clang-cxxflags
+++ b/config/clang-cxxflags
@@ -64,10 +64,11 @@ if test "X-" = "X-$cxx_flags_set"; then
else
cxx_version="`$CXX $CXXFLAGS $H5_CXXFLAGS -v 2>&1 |\
grep 'Apple LLVM version' | sed 's/.*Apple LLVM version \([-a-z0-9\.]*\).*/\1/'`"
- cxx_vendor="Apple LLVM"
+ if test -n "$cxx_version"; then
+ cxx_vendor="Apple LLVM"
+ fi
fi
if test "X-" != "X-$cxx_version"; then
- echo "compiler '$CXX' is $cxx_vendor-$cxx_version"
# Get the compiler version numbers
cxx_vers_major=`echo $cxx_version | cut -f1 -d.`
@@ -131,11 +132,7 @@ if test "X-clang" = "X-$cxx_vendor" -o "X-Apple LLVM" = "X-$cxx_vendor"; then
##############
# NDEBUG is handled explicitly by the configure script
- if test $cxx_vers_major -le 4; then
- PROD_CXXFLAGS=
- else
- PROD_CXXFLAGS="-fstdarg-opt"
- fi
+ PROD_CXXFLAGS=
#########
# Debug #
@@ -153,7 +150,7 @@ if test "X-clang" = "X-$cxx_vendor" -o "X-Apple LLVM" = "X-$cxx_vendor"; then
# Symbols #
###########
- NO_SYMBOLS_CXXFLAGS="-s"
+ NO_SYMBOLS_CXXFLAGS=
SYMBOLS_CXXFLAGS="-g -fno-omit-frame-pointer"
#############