mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* runruby.rb: should load built rbconfig.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
20484c52b0
commit
fc114887e6
2 changed files with 11 additions and 5 deletions
10
runruby.rb
10
runruby.rb
|
@ -18,18 +18,20 @@ while arg = ARGV[0]
|
|||
ARGV.shift
|
||||
end
|
||||
|
||||
require 'rbconfig'
|
||||
config = Config::CONFIG
|
||||
|
||||
srcdir ||= File.dirname(__FILE__)
|
||||
archdir ||= '.'
|
||||
|
||||
abs_archdir = File.expand_path(archdir)
|
||||
$:.unshift(abs_archdir)
|
||||
|
||||
require 'rbconfig'
|
||||
config = Config::CONFIG
|
||||
|
||||
ruby = File.join(archdir, config["RUBY_INSTALL_NAME"]+config['EXEEXT'])
|
||||
unless File.exist?(ruby)
|
||||
abort "#{ruby} is not found.\nTry `make' first, then `make test', please.\n"
|
||||
end
|
||||
|
||||
abs_archdir = File.expand_path(archdir)
|
||||
libs = [abs_archdir, File.expand_path("lib", srcdir)]
|
||||
if extout
|
||||
abs_extout = File.expand_path(extout)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue