diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-02-08 22:55:10 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-02-08 22:55:10 +0000 |
commit | f89ffcd705f57d910dd972f9b1f1e6e827f2960e (patch) | |
tree | f155cdc625e19daa7f810042030948d0c96c0558 /llvm/autoconf/m4 | |
parent | 388d767ab1986307ad9192a0feac366673b63e36 (diff) | |
download | bcm5719-llvm-f89ffcd705f57d910dd972f9b1f1e6e827f2960e.tar.gz bcm5719-llvm-f89ffcd705f57d910dd972f9b1f1e6e827f2960e.zip |
configure: when performing a compiler feature test for a -Wno-foo flag, attempt
to use -Wfoo instead of -Wno-foo. This works around a bug in some versions of
gcc, where it will silently accept an unknown -Wno-foo option, but will
generate an error for a compile which uses -Wno-foo if that compile also
triggers any warnings.
llvm-svn: 174770
Diffstat (limited to 'llvm/autoconf/m4')
-rw-r--r-- | llvm/autoconf/m4/cxx_flag_check.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/autoconf/m4/cxx_flag_check.m4 b/llvm/autoconf/m4/cxx_flag_check.m4 index 62454b7147f..4b097445501 100644 --- a/llvm/autoconf/m4/cxx_flag_check.m4 +++ b/llvm/autoconf/m4/cxx_flag_check.m4 @@ -1,2 +1,2 @@ AC_DEFUN([CXX_FLAG_CHECK], - [AC_SUBST($1, `$CXX -Werror $2 -fsyntax-only -xc /dev/null 2>/dev/null && echo $2`)]) + [AC_SUBST($1, `$CXX -Werror patsubst($2, [^-Wno-], [-W]) -fsyntax-only -xc /dev/null 2>/dev/null && echo $2`)]) |