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

ruby-changes:69207

From: Alan <ko1@a...>
Date: Thu, 21 Oct 2021 08:23:40 +0900 (JST)
Subject: [ruby-changes:69207] c062028d37 (master): YJIT: check machine arch before enabling

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

From c062028d3785d5d56deb1be6c4c5733f7f9f19ac Mon Sep 17 00:00:00 2001
From: Alan Wu <XrXr@u...>
Date: Tue, 19 Oct 2021 17:51:40 -0400
Subject: YJIT: check machine arch before enabling

So we don't try to run x64 on ARM.
---
 yjit.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/yjit.c b/yjit.c
index dbd9bea25a..bfe79822f0 100644
--- a/yjit.c
+++ b/yjit.c
@@ -22,10 +22,10 @@ https://github.com/ruby/ruby/blob/trunk/yjit.c#L22
 # define YJIT_DUMP_MODE 0
 #endif
 
-#ifdef _WIN32
-# define PLATFORM_SUPPORTED_P 0
-#else
+#if defined(__x86_64__) && !defined(_WIN32)
 # define PLATFORM_SUPPORTED_P 1
+#else
+# define PLATFORM_SUPPORTED_P 0
 #endif
 
 // USE_MJIT comes from configure options
-- 
cgit v1.2.1


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

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