summaryrefslogtreecommitdiffstats
path: root/config/clang-flags
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-flags
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-flags')
-rw-r--r--config/clang-flags17
1 files changed, 3 insertions, 14 deletions
diff --git a/config/clang-flags b/config/clang-flags
index 18ec5f6..b4f5e2e 100644
--- a/config/clang-flags
+++ b/config/clang-flags
@@ -140,11 +140,7 @@ if test "X-clang" = "X-$cc_vendor" -o "X-Apple LLVM" = "X-$cc_vendor"; then
# NDEBUG is handled explicitly by the configure script
# -g is handled by the symbols flags
- if test $cc_vers_major -le 4; then
- DEBUG_CFLAGS=
- else
- DEBUG_CFLAGS="-ftrapv -fno-common"
- fi
+ DEBUG_CFLAGS="-ftrapv -fno-common"
###########
# Symbols #
@@ -163,13 +159,8 @@ if test "X-clang" = "X-$cc_vendor" -o "X-Apple LLVM" = "X-$cc_vendor"; then
# Optimization #
################
- if test $cc_vers_major -le 4; then
- HIGH_OPT_CFLAGS="-O3"
- DEBUG_OPT_CFLAGS=
- else
- HIGH_OPT_CFLAGS="-O3"
- DEBUG_OPT_CFLAGS="-g"
- fi
+ HIGH_OPT_CFLAGS="-O3"
+ DEBUG_OPT_CFLAGS="-g"
NO_OPT_CFLAGS="-O0"
############
@@ -183,8 +174,6 @@ if test "X-clang" = "X-$cc_vendor" -o "X-Apple LLVM" = "X-$cc_vendor"; then
H5_CFLAGS="$H5_CFLAGS $(load_clang_arguments general)"
H5_ECFLAGS="$H5_ECFLAGS $(load_clang_arguments error-general)"
-echo "H5_CFLAGS: $H5_CFLAGS"
-
######################
# Developer warnings #
######################