mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* runruby.rb: added --cpu option.
* runruby.rb: skips version check in rbconfig.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7f0a43c1e1
commit
3c164fd92e
2 changed files with 10 additions and 3 deletions
|
@ -1,7 +1,11 @@
|
|||
Sat Feb 7 11:57:13 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
Sat Feb 7 12:31:03 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* runruby.rb: added --precommand and --show options.
|
||||
|
||||
* runruby.rb: added --cpu option.
|
||||
|
||||
* runruby.rb: skips version check in rbconfig.rb.
|
||||
|
||||
Sat Feb 7 11:44:06 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* lib/mkmf.rb (have_header): needs dependent headers if trying to
|
||||
|
|
|
@ -13,6 +13,8 @@ while arg = ARGV[0]
|
|||
srcdir = value
|
||||
when re =~ "archdir"
|
||||
archdir = value
|
||||
when re =~ "cpu"
|
||||
precommand << "arch" << "-arch" << value
|
||||
when re =~ "extout"
|
||||
extout = value
|
||||
when re =~ "pure"
|
||||
|
@ -37,8 +39,9 @@ archdir ||= '.'
|
|||
abs_archdir = File.expand_path(archdir)
|
||||
$:.unshift(abs_archdir)
|
||||
|
||||
require 'rbconfig'
|
||||
config = RbConfig::CONFIG
|
||||
config = File.read(conffile = File.join(abs_archdir, 'rbconfig.rb'))
|
||||
config.sub!(/^(\s*)RUBY_VERSION\s*==.*(\sor\s*)$/, '\1true\2')
|
||||
config = Module.new {module_eval(config, conffile)}::Config::CONFIG
|
||||
|
||||
ruby = File.join(archdir, config["RUBY_INSTALL_NAME"]+config['EXEEXT'])
|
||||
unless File.exist?(ruby)
|
||||
|
|
Loading…
Reference in a new issue