mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* tool/mkconfig.rb: generate RbConfig.ruby in rbconfig.rb.
* lib/webrick/httpservlet/cgihandler.rb: use RbConfig.ruby. * test/ruby/envutil.rb: ditto. * benchmark/report.rb: ditto. * benchmark/runc.rb: ditto. * tool/eval.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
070489975d
commit
c0b4e90f08
7 changed files with 27 additions and 16 deletions
|
@ -201,6 +201,14 @@ print <<EOS
|
|||
CONFIG.each_value do |val|
|
||||
RbConfig::expand(val)
|
||||
end
|
||||
|
||||
# returns the absolute pathname of the ruby command.
|
||||
def RbConfig.ruby
|
||||
File.join(
|
||||
RbConfig::CONFIG["bindir"],
|
||||
RbConfig::CONFIG["ruby_install_name"] + RbConfig::CONFIG["EXEEXT"]
|
||||
)
|
||||
end
|
||||
end
|
||||
Config = RbConfig # compatibility for ruby-1.8.4 and older.
|
||||
CROSS_COMPILING = nil unless defined? CROSS_COMPILING
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue