mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
19 lines
337 B
Ruby
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
|