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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
278 B
Ruby
Raw Normal View History

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