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

Allow aarch64 to build YJIT

This commit is contained in:
Takashi Kokubun 2022-08-16 12:51:16 -07:00
parent 95dce1ccac
commit c38e911147
No known key found for this signature in database
GPG key ID: 6FFC433B12EE23DD

4
yjit.h
View file

@ -17,8 +17,8 @@
#if USE_YJIT
// We generate x86 assembly
#if defined(_WIN32) ? defined(_M_AMD64) : defined(__x86_64__)
// We generate x86 or arm64 assembly
#if defined(_WIN32) ? defined(_M_AMD64) : (defined(__x86_64__) || defined(__aarch64__))
// x86_64 platforms without mingw/msys or x64-mswin
#else
# error YJIT unsupported platform