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:
parent
b74d6563a6
commit
c062028d37
1 changed files with 3 additions and 3 deletions
6
yjit.c
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
|
||||
|
|
Loading…
Reference in a new issue