[前][次][番号順一覧][スレッド一覧]

ruby-changes:60699

From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Wed, 8 Apr 2020 22:37:10 +0900 (JST)
Subject: [ruby-changes:60699] ec1b3464da (master): RUBY3_HAS_BUILTIN: icc has broken __has_builtin

https://git.ruby-lang.org/ruby.git/commit/?id=ec1b3464da

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?=
 <shyouhei@r...>
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.

diff --git a/include/ruby/3/has/builtin.h b/include/ruby/3/has/builtin.h
index b095ffd..b30fbdd 100644
--- a/include/ruby/3/has/builtin.h
+++ b/include/ruby/3/has/builtin.h
@@ -26,7 +26,10 @@ https://github.com/ruby/ruby/blob/trunk/include/ruby/3/has/builtin.h#L26
 #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 v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]