diff options
Diffstat (limited to 'include/ruby/3/has')
-rw-r--r-- | include/ruby/3/has/builtin.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/ruby/3/has/builtin.h b/include/ruby/3/has/builtin.h index b095ffde6f..b30fbdd1be 100644 --- a/include/ruby/3/has/builtin.h +++ b/include/ruby/3/has/builtin.h @@ -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) |