Use ENV['RUBY_EXE'] as RbConfig.ruby might be incorrect

* On a built-but-not-installed-ruby.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
eregon 2017-10-28 16:15:46 +00:00
Родитель a184500be2
Коммит a53ac0c54f
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -27,7 +27,7 @@ def compile_extension(name)
ruby_library = "#{RbConfig::CONFIG['libdir']}/#{libruby_so}" ruby_library = "#{RbConfig::CONFIG['libdir']}/#{libruby_so}"
unless libruby_so and File.exist?(ruby_library) unless libruby_so and File.exist?(ruby_library)
# Statically-compiled lib in the binary # Statically-compiled lib in the binary
ruby_library = RbConfig.ruby ruby_library = ENV['RUBY_EXE']
end end
return lib if File.exist?(lib) and return lib if File.exist?(lib) and