Skip to content

Commit

Permalink
lib/racc/parser.rb: use require for racc/cparse
Browse files Browse the repository at this point in the history
* lib/racc/parser.rb: reverted r65505.  require_relative does
  not work for racc/cparse.so, as extension libraries are placed
  in other directories than Ruby libraries.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
stomar committed Nov 3, 2018
1 parent 84a2761 commit e9adca4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/racc/parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ class Parser
Racc_Runtime_Core_Version_R = '1.4.6'
Racc_Runtime_Core_Revision_R = %w$originalRevision: 1.8 $[1]
begin
require_relative 'cparse'
require 'racc/cparse'
# Racc_Runtime_Core_Version_C = (defined in extension)
Racc_Runtime_Core_Revision_C = Racc_Runtime_Core_Id_C.split[2]
unless new.respond_to?(:_racc_do_parse_c, true)
Expand Down

0 comments on commit e9adca4

Please sign in to comment.