Skip to content

Commit

Permalink
Require jruby to get JRuby.runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Mar 20, 2020
1 parent a43742a commit dbad978
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ruby/stdlib/racc/parser.rb
Expand Up @@ -188,6 +188,7 @@ class Parser
Racc_Runtime_Core_Revision_R = %w$originalRevision: 1.8 $[1]
begin
if Object.const_defined?(:RUBY_ENGINE) and RUBY_ENGINE == 'jruby'
require 'jruby'
require 'racc/cparse-jruby.jar'
com.headius.racc.Cparse.new.load(JRuby.runtime, false)
else
Expand Down

0 comments on commit dbad978

Please sign in to comment.