1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/mjit_compiler.rb
2022-09-23 06:44:28 +09:00

19 lines
337 B
Ruby

# frozen_string_literal: true
# TODO: Merge this to mjit.rb
if RubyVM::MJIT.enabled?
begin
require 'etc'
require 'fiddle'
rescue LoadError
return # skip miniruby
end
if Fiddle::SIZEOF_VOIDP == 8
require 'mjit/c_64'
else
require 'mjit/c_32'
end
require "mjit/instruction"
require "mjit/compiler"
end