ruby/mjit_compiler.rb

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

15 строки
278 B
Ruby
Исходник Обычный вид История

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