mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Do not use clang on cygwin
Its `__has_declspec_attribute()` is not reliable. For instance, while `__has_declspec_attribute(noalias)` is true but 'noalias' attribute is warned as unknown.
This commit is contained in:
parent
36d1bb720c
commit
67ae1d441d
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ 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*], [
|
||||
AS_CASE(["${build_os}"], [linux*|cygwin*], [
|
||||
AC_CHECK_TOOLS([CC], [gcc clang cc])
|
||||
], [
|
||||
# OpenBSD wants to prefer cc over gcc.
|
||||
|
|
Loading…
Add table
Reference in a new issue