1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

check icc version inside condition

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2017-12-15 07:58:02 +00:00
parent 41b76e98a9
commit a32e3fee79

View file

@ -404,10 +404,12 @@ 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
AS_CASE(["x$CC"], [xicc], [
icc_version=`echo =__ICC | $CC -E -xc - | sed '/^=/!d;s///'`
test -n "$icc_version" || icc_version=0
])
# RUBY_APPEND_OPTIONS(XCFLAGS, ["-include ruby/config.h" "-include ruby/missing.h"])
], [
linker_flag=