summaryrefslogtreecommitdiff
path: root/yjit.c
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2021-10-19 17:51:40 -0400
committerAlan Wu <XrXr@users.noreply.github.com>2021-10-20 18:19:43 -0400
commitc062028d3785d5d56deb1be6c4c5733f7f9f19ac (patch)
treeb7bd35137e3c76cc7f3aeb8e8ab752cd3694e0bc /yjit.c
parentb74d6563a665f225f182c4921db68852bbb7e1f1 (diff)
YJIT: check machine arch before enabling
So we don't try to run x64 on ARM.
Diffstat (limited to 'yjit.c')
-rw-r--r--yjit.c6
1 files 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 @@
# 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