Skip to content

Commit 1915fba

Browse files
committed
To use RACC variable if it's provided
1 parent b795077 commit 1915fba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ parsed_files = PARSER_FILES.map do |parser_file|
7070
puts "Generating #{parsed_file}..."
7171
case ext
7272
when '.ry' # need racc
73-
racc = Gem.bin_path 'racc', 'racc'
73+
racc = ENV['RACC'] || Gem.bin_path('racc', 'racc')
7474
rb_file = parser_file.gsub(/\.ry\z/, ".rb")
7575
ruby "#{racc} -l -E -o #{rb_file} #{parser_file}"
7676
File.open(rb_file, 'r+') do |f|

0 commit comments

Comments
 (0)