summaryrefslogtreecommitdiffstats
path: root/config/clang-cxxflags
diff options
context:
space:
mode:
authorLarry Knox <lrknox@hdfgroup.org>2020-06-12 16:54:58 (GMT)
committerLarry Knox <lrknox@hdfgroup.org>2020-06-12 16:54:58 (GMT)
commit998c6470d78e14228695419c3b514c35ecf3d69e (patch)
tree19eade5d453ba5f108cf8877c970194d4f7869d5 /config/clang-cxxflags
parentf295ed11665116cc264461b91b028949b2ac8d78 (diff)
downloadhdf5-998c6470d78e14228695419c3b514c35ecf3d69e.zip
hdf5-998c6470d78e14228695419c3b514c35ecf3d69e.tar.gz
hdf5-998c6470d78e14228695419c3b514c35ecf3d69e.tar.bz2
Remove unnecessary version conditions for Clang compilers.
Diffstat (limited to 'config/clang-cxxflags')
-rw-r--r--config/clang-cxxflags17
1 files changed, 3 insertions, 14 deletions
diff --git a/config/clang-cxxflags b/config/clang-cxxflags
index a37509f..edd62e7 100644
--- a/config/clang-cxxflags
+++ b/config/clang-cxxflags
@@ -140,11 +140,7 @@ if test "X-clang" = "X-$cxx_vendor" -o "X-Apple LLVM" = "X-$cxx_vendor"; then
# NDEBUG is handled explicitly by the configure script
# -g is handled by the symbols flags
- if test $cxx_vers_major -le 4; then
- DEBUG_CXXFLAGS=
- else
- DEBUG_CXXFLAGS="-ftrapv -fno-common"
- fi
+ DEBUG_CXXFLAGS="-ftrapv -fno-common"
###########
# Symbols #
@@ -163,13 +159,8 @@ if test "X-clang" = "X-$cxx_vendor" -o "X-Apple LLVM" = "X-$cxx_vendor"; then
# Optimization #
################
- if test $cxx_vers_major -le 4; then
- HIGH_OPT_CXXFLAGS="-O3"
- DEBUG_OPT_CXXFLAGS=
- else
- HIGH_OPT_CXXFLAGS="-O3"
- DEBUG_OPT_CXXFLAGS="-g"
- fi
+ HIGH_OPT_CXXFLAGS="-O3"
+ DEBUG_OPT_CXXFLAGS="-g"
NO_OPT_CXXFLAGS="-O0"
############
@@ -183,8 +174,6 @@ if test "X-clang" = "X-$cxx_vendor" -o "X-Apple LLVM" = "X-$cxx_vendor"; then
H5_CXXFLAGS="$H5_CXXFLAGS $(load_clang_arguments general)"
H5_ECXXFLAGS="$H5_ECXXFLAGS $(load_clang_arguments error-general)"
-echo "H5_CXXFLAGS: $H5_CXXFLAGS"
-
######################
# Developer warnings #
######################