diff options
author | Alan Wu <XrXr@users.noreply.github.com> | 2021-10-19 17:51:40 -0400 |
---|---|---|
committer | Alan Wu <XrXr@users.noreply.github.com> | 2021-10-20 18:19:43 -0400 |
commit | c062028d3785d5d56deb1be6c4c5733f7f9f19ac (patch) | |
tree | b7bd35137e3c76cc7f3aeb8e8ab752cd3694e0bc | |
parent | b74d6563a665f225f182c4921db68852bbb7e1f1 (diff) |
YJIT: check machine arch before enabling
So we don't try to run x64 on ARM.
-rw-r--r-- | yjit.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |