diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-15 07:58:02 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-15 07:58:02 +0000 |
commit | a32e3fee79dcf6a13d90416bca1fca82fcf537c0 (patch) | |
tree | 2e043b38c86834891f9515ffc87e4c89012d4c4b /configure.ac | |
parent | 41b76e98a9f1e85d39da9f4acc9be39707581d28 (diff) | |
download | ruby-a32e3fee79dcf6a13d90416bca1fca82fcf537c0.tar.gz |
check icc version inside condition
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 4c250d4d75..d6a4169802 100644 --- a/configure.ac +++ b/configure.ac @@ -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= |