From ec1b3464da9ed2d891beb344efc5881532f2ac3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?= Date: Wed, 8 Apr 2020 22:27:50 +0900 Subject: 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. --- include/ruby/3/has/builtin.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include/ruby') 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) -- cgit v1.2.3