comparison src/configure.ac @ 23780:6a4554de9925 v8.2.2431

patch 8.2.2431: warning for -fno-strength-reduce with Clang 11 Commit: https://github.com/vim/vim/commit/ebd211c8a39871c88189c8cda9e624eb30b300b3 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 30 19:33:36 2021 +0100 patch 8.2.2431: warning for -fno-strength-reduce with Clang 11 Problem: Warning for -fno-strength-reduce with Clang 11. Solution: Adjust check for clang version number.
author Bram Moolenaar <Bram@vim.org>
date Sat, 30 Jan 2021 19:45:04 +0100
parents 619c92c629b8
children de74b00b15bb
comparison
equal deleted inserted replaced
23779:e24b182c5646 23780:6a4554de9925
125 AC_MSG_RESULT($CLANG_VERSION) 125 AC_MSG_RESULT($CLANG_VERSION)
126 dnl If you find the same issue with versions earlier than 500.2.75, 126 dnl If you find the same issue with versions earlier than 500.2.75,
127 dnl change the constant 500002075 below appropriately. To get the 127 dnl change the constant 500002075 below appropriately. To get the
128 dnl integer corresponding to a version number, refer to the 128 dnl integer corresponding to a version number, refer to the
129 dnl definition of CLANG_VERSION above. 129 dnl definition of CLANG_VERSION above.
130 dnl Clang 11 reports "11", assume Clang 10 and later work like this.
130 AC_MSG_CHECKING(if clang supports -fno-strength-reduce) 131 AC_MSG_CHECKING(if clang supports -fno-strength-reduce)
131 if test "$CLANG_VERSION" -ge 500002075 ; then 132 if test "$CLANG_MAJOR" -ge 10 -o "$CLANG_VERSION" -ge 500002075 ; then
132 AC_MSG_RESULT(no) 133 AC_MSG_RESULT(no)
133 CFLAGS=`echo "$CFLAGS" | sed -e 's/-fno-strength-reduce/ /'` 134 CFLAGS=`echo "$CFLAGS" | sed -e 's/-fno-strength-reduce/ /'`
134 else 135 else
135 AC_MSG_RESULT(yes) 136 AC_MSG_RESULT(yes)
136 fi 137 fi