diff options
author | yui-knk <spiketeika@gmail.com> | 2023-05-31 21:02:04 +0900 |
---|---|---|
committer | Yuichiro Kaneko <spiketeika@gmail.com> | 2023-06-02 09:28:30 +0900 |
commit | 3a4206c7a1025053601329fdf0d90113d72f77af (patch) | |
tree | 947b7d342973e3bd2878580073d9244dd0591f13 | |
parent | 10621f7cb9a0c70e568f89cce47a02e878af6778 (diff) |
No need to define "BISON" on extconf.rb
"BISON" is defined in "ext/ripper/depend".
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/7878
-rw-r--r-- | ext/ripper/extconf.rb | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/ext/ripper/extconf.rb b/ext/ripper/extconf.rb index bff5d429c3..24bf8c063f 100644 --- a/ext/ripper/extconf.rb +++ b/ext/ripper/extconf.rb @@ -5,13 +5,6 @@ require 'mkmf' require 'rbconfig' def main - yacc = ENV["YACC"] || "bison" - - # unless find_executable(yacc) - # unless File.exist?('ripper.c') or File.exist?("#{$srcdir}/ripper.c") - # raise 'missing bison; abort' - # end - # end $objs = %w(ripper.o) $distcleanfiles.concat %w(ripper.y ripper.c eventids1.c eventids2table.c) $cleanfiles.concat %w(ripper.E ripper.output y.output .eventids2-check) @@ -19,9 +12,7 @@ def main $defs << '-DRIPPER_DEBUG' if $debug $VPATH << '$(topdir)' << '$(top_srcdir)' $INCFLAGS << ' -I$(topdir) -I$(top_srcdir)' - create_makefile 'ripper' do |conf| - conf << "BISON = #{yacc}" - end + create_makefile 'ripper' end main |