1
0
Fork 0
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:
卜部昌平 2020-04-08 22:27:50 +09:00
parent 8d622a58c6
commit ec1b3464da

View file

@ -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)