diff options
Diffstat (limited to 'ext/ripper/extconf.rb')
-rw-r--r-- | ext/ripper/extconf.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ext/ripper/extconf.rb b/ext/ripper/extconf.rb index 536e23d3ad..f1716b84c0 100644 --- a/ext/ripper/extconf.rb +++ b/ext/ripper/extconf.rb @@ -9,15 +9,17 @@ def main exit 1 end $objs = %w(ripper.o) - $cleanfiles.concat %w(ripper.y ripper.c ripper.output ids1 ids2) + $cleanfiles.concat %w(ripper.y ripper.c ripper.E ripper.output eventids1.c ids1 ids2) $CPPFLAGS += ' -DRIPPER' $CPPFLAGS += ' -DRIPPER_DEBUG' if $debug create_makefile 'ripper' end def have_command(cmd) - ENV['PATH'].split(File::PATH_SEPARATOR).any? {|path| - File.executable?("#{path}/#{cmd}#{Config::CONFIG['EXEEXT']}") + checking_for(cmd) { + ENV['PATH'].split(File::PATH_SEPARATOR).any? {|path| + File.executable?("#{path}/#{cmd}#{Config::CONFIG['EXEEXT']}") + } } end |