[前][次][番号順一覧][スレッド一覧]

ruby-changes:57250

From: Yusuke <ko1@a...>
Date: Sun, 25 Aug 2019 22:16:44 +0900 (JST)
Subject: [ruby-changes:57250] Yusuke Endoh: 11f7c30fa7 (master): configure.ac: fix the guess of icc_version

https://git.ruby-lang.org/ruby.git/commit/?id=11f7c30fa7

From 11f7c30fa7812388b8919453b92fdf5613db22dd Mon Sep 17 00:00:00 2001
From: Yusuke Endoh <mame@r...>
Date: Sun, 25 Aug 2019 22:11:49 +0900
Subject: configure.ac: fix the guess of icc_version

The icc_version guessing was accidentally disabled because of
61885c9b7ca8ccdaf53d7c365fbb86bad3294d88; `AC_PROG_CC_C99` changes
CC like "icc -std=c99", and `AS_CASE(["x$CC"], [xicc],` does not match.

The variable `icc_version` is eventually defined, so the `AS_CASE` is
not needed.  This change removes the `AS_CASE`.

diff --git a/configure.ac b/configure.ac
index 093010d..cd9f039 100644
--- a/configure.ac
+++ b/configure.ac
@@ -239,9 +239,7 @@ AS_IF([test "$GCC" = yes], [ https://github.com/ruby/ruby/blob/trunk/configure.ac#L239
     gcc_minor=`echo =__GNUC_MINOR__ | $CC -E -xc - | sed '/^=/!d;s///'`
     test -n "$gcc_major" || gcc_major=0
     test -n "$gcc_minor" || gcc_minor=0
-    AS_CASE(["x$CC"], [xicc], [
-      icc_version=`echo =__ICC | $CC -E -xc - | sed '/^=/!d;s///'`
-    ])
+    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"])
 ], [
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]