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

ruby-changes:62782

From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Tue, 1 Sep 2020 11:05:28 +0900 (JST)
Subject: [ruby-changes:62782] b01d852c2a (master): congigure.ac: favour gcc on Linux

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

From b01d852c2add603ab51689d495fa443d32cf5909 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?=
 <shyouhei@r...>
Date: Mon, 31 Aug 2020 14:49:56 +0900
Subject: congigure.ac: favour gcc on Linux

Requested by Naruse.

diff --git a/configure.ac b/configure.ac
index a6734df..296b069 100644
--- a/configure.ac
+++ b/configure.ac
@@ -101,7 +101,9 @@ AS_IF([test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"], [ https://github.com/ruby/ruby/blob/trunk/configure.ac#L101
   AC_MSG_ERROR(cached CC is different -- throw away $cache_file
 (it is also a good idea to do 'make clean' before compiling))
 ])
-AS_IF([test -z "${CC}"], [
+AS_CASE(["${build_os}"], [linux*], [
+    AC_CHECK_TOOLS([CC], [gcc clang cc])
+], [
     # OpenBSD wants to prefer cc over gcc.
     # See https://github.com/ruby/ruby/pull/2443
     AC_CHECK_TOOLS([CC], [cl.exe clang cc gcc c99 /usr/ucb/cc])
-- 
cgit v0.10.2


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

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