diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-03-01 08:31:43 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-03-01 08:31:43 +0000 |
commit | 19cf8e03878e93a9594c275b8f82a9d53e02eda1 (patch) | |
tree | 1564ead137de28c8d3e556968716702fa80386f7 /ext | |
parent | a4020fbefcf61edfe604c25a0bc70a7aed380070 (diff) | |
download | ruby-19cf8e03878e93a9594c275b8f82a9d53e02eda1.tar.gz |
Fixed build failure of Travis CI. We need to support `make srcs`.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/ripper/extconf.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/ripper/extconf.rb b/ext/ripper/extconf.rb index 6a793b8699..2dde565bd9 100644 --- a/ext/ripper/extconf.rb +++ b/ext/ripper/extconf.rb @@ -5,7 +5,9 @@ require 'mkmf' require 'rbconfig' def main - unless find_executable(ENV["YACC"] || 'bison') + yacc = ENV["YACC"] || "bison" + + unless find_executable(yacc) unless File.exist?('ripper.c') or File.exist?("#{$srcdir}/ripper.c") raise 'missing bison; abort' end @@ -17,7 +19,7 @@ def main $VPATH << '$(topdir)' << '$(top_srcdir)' $INCFLAGS << ' -I$(topdir) -I$(top_srcdir)' create_makefile 'ripper' do |conf| - conf << "BISON = #{ENV['YACC'] || 'bison'}" + conf << "BISON = #{yacc}" end end |