Automatically detect 64bit platforms

This commit is contained in:
Takashi Kokubun 2022-09-04 23:25:26 -07:00
parent 967fe334bb
commit d77c037a16
No known key found for this signature in database
GPG Key ID: 6FFC433B12EE23DD

View File

@ -3,12 +3,12 @@
if RubyVM::MJIT.enabled?
begin
require 'etc'
require 'fiddle'
rescue LoadError
return # skip miniruby
end
case RUBY_PLATFORM.split('-', 2).first
when 'x86_64', 'aarch64', 'arm64', 's390x'
if Fiddle::SIZEOF_VOIDP == 8
require 'mjit/c_64'
else
require 'mjit/c_32'