diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-01-30 19:33:36 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-01-30 19:33:36 +0100 |
commit | ebd211c8a39871c88189c8cda9e624eb30b300b3 (patch) | |
tree | 7ad76c97dc7154e476c8fc20e972eac48091b367 /src/auto | |
parent | f8c6a1718007432812184c28495e8d27ee6c0395 (diff) |
patch 8.2.2431: warning for -fno-strength-reduce with Clang 11v8.2.2431
Problem: Warning for -fno-strength-reduce with Clang 11.
Solution: Adjust check for clang version number.
Diffstat (limited to 'src/auto')
-rwxr-xr-x | src/auto/configure | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/auto/configure b/src/auto/configure index bbfaafcad4..9d76f89088 100755 --- a/src/auto/configure +++ b/src/auto/configure @@ -4510,9 +4510,9 @@ if test x"$CLANG_VERSION_STRING" != x"" ; then CLANG_VERSION=`expr $CLANG_MAJOR '*' 1000000 '+' $CLANG_MINOR '*' 1000 '+' $CLANG_REVISION` { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG_VERSION" >&5 $as_echo "$CLANG_VERSION" >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if clang supports -fno-strength-reduce" >&5 + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if clang supports -fno-strength-reduce" >&5 $as_echo_n "checking if clang supports -fno-strength-reduce... " >&6; } - if test "$CLANG_VERSION" -ge 500002075 ; then + if test "$CLANG_MAJOR" -ge 10 -o "$CLANG_VERSION" -ge 500002075 ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } CFLAGS=`echo "$CFLAGS" | sed -e 's/-fno-strength-reduce/ /'` |