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

15 lines
278 B
Ruby
Raw Normal View History

2022-09-05 00:53:46 -04:00
# frozen_string_literal: true
# TODO: Merge this to mjit.rb
if RubyVM::MJIT.enabled?
begin
2022-09-05 02:25:26 -04:00
require 'fiddle'
2022-09-18 20:25:04 -04:00
require 'fiddle/import'
2022-09-05 00:53:46 -04:00
rescue LoadError
return # skip miniruby
end
2022-09-18 20:25:04 -04:00
require "mjit/c_type"
require "mjit/instruction"
2022-09-05 00:53:46 -04:00
require "mjit/compiler"
end