diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-14 16:47:28 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-14 16:47:28 +0000 |
commit | dd25f5052f2d57f29fc2a665770c1c5099576349 (patch) | |
tree | 8facc5d50866a16267505d10a9f1837c78960a6f /configure.ac | |
parent | 6d3f72e5be2312be312f2acbf3465b05293c1431 (diff) | |
download | ruby-dd25f5052f2d57f29fc2a665770c1c5099576349.tar.gz |
ICC doesn't support -Werror= but ignore
It cause warnings when ruby remove error= on compiling ext/*.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 21d411c37a..c5735b301e 100644 --- a/configure.ac +++ b/configure.ac @@ -404,8 +404,10 @@ AS_IF([test "$GCC" = yes], [ : ${optflags=-O3} gcc_major=`echo =__GNUC__ | $CC -E -xc - | sed '/^=/!d;s///'` gcc_minor=`echo =__GNUC_MINOR__ | $CC -E -xc - | sed '/^=/!d;s///'` + icc_version=`echo =__ICC | $CC -E -xc - | sed '/^=/!d;s///'` test -n "$gcc_major" || gcc_major=0 test -n "$gcc_minor" || gcc_minor=0 + test -n "$icc_version" || icc_version=0 # RUBY_APPEND_OPTIONS(XCFLAGS, ["-include ruby/config.h" "-include ruby/missing.h"]) ], [ linker_flag= @@ -745,6 +747,10 @@ AS_IF([test "$GCC:${warnflags+set}:no" = yes::no], [ AS_IF([test $gcc_major -ge 5 -a $gcc_major -le 6], [ extra_warning="$extra_warning -Wno-maybe-uninitialized" ]) + # ICC doesn't support -Werror= + AS_IF([test $icc_version -gt 0], [ + particular_werror_flags=yes + ]) for wflag in -Wno-unused-parameter -Wno-parentheses -Wno-long-long \ -diag-disable=2259 \ -Wno-missing-field-initializers \ |