mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Automatically detect 64bit platforms
This commit is contained in:
parent
967fe334bb
commit
d77c037a16
1 changed files with 2 additions and 2 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue