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
Родитель b74d6563a6
Коммит c062028d37
1 изменённых файлов: 3 добавлений и 3 удалений

6
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