summaryrefslogtreecommitdiffstats
path: root/config/clang-flags
diff options
context:
space:
mode:
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 #
######################