1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

YJIT: check machine arch before enabling

So we don't try to run x64 on ARM.
This commit is contained in:
Alan Wu 2021-10-19 17:51:40 -04:00
parent b74d6563a6
commit c062028d37

6
yjit.c
View file

@ -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