summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author卜部昌平 <[email protected]>2021-06-14 09:34:25 +0900
committer卜部昌平 <[email protected]>2021-06-14 22:37:17 +0900
commit90cad6e14745d812f042df61a6455db022be7389 ()
tree34c317e149975872f2c7cc4013de9e3a9d38eae9
parentb513fc2fe747e1ad349fa1fe4bfdb5e91dbda0d3 (diff)
prefer cc/gcc over clang on solaris
requested by tankf33der at https://bugs.ruby-lang.org/issues/17949#change-92430
Notes: Merged: https://.com/ruby/ruby/pull/4567
-rw-r--r--configure.ac9
1 files changed, 8 insertions, 1 deletions
@@ -135,8 +135,15 @@ AS_IF([test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"], [
AC_MSG_ERROR(cached CC is different -- throw away $cache_file
(it is also a good idea to do 'make clean' before compiling))
])
-AS_CASE(["${build_os}"], [linux*|cygwin*|msys*], [
AC_CHECK_TOOLS([CC], [gcc clang cc])
], [
# OpenBSD wants to prefer cc over gcc.
# See https://.com/ruby/ruby/pull/2443