mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
RUBY3_HAS_BUILTIN: icc has broken __has_builtin
It turned out that compilation errors in icc were due to their having broken __has_builtin. Let's just skip such situations.
This commit is contained in:
parent
8d622a58c6
commit
ec1b3464da
1 changed files with 4 additions and 1 deletions
|
@ -26,7 +26,10 @@
|
|||
#if defined(RUBY3_HAS_BUILTIN)
|
||||
# /* Take that. */
|
||||
|
||||
#elif defined(__has_builtin)
|
||||
#elif defined(__has_builtin) && ! RUBY3_COMPILER_IS(Intel)
|
||||
# /* :TODO: Intel C Compiler has __has_builtin (since 19.1 maybe?), and is
|
||||
# * reportedly broken. We have to skip them. However the situation can
|
||||
# * change. They might improve someday. We need to revisit here later. */
|
||||
# define RUBY3_HAS_BUILTIN(_) __has_builtin(_)
|
||||
|
||||
#elif RUBY3_COMPILER_IS(GCC)
|
||||
|
|
Loading…
Add table
Reference in a new issue