mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
default.mspec: use RbConfig::CONFIG
* spec/default.mspec (config): use RbConfig::CONFIG directly, loading with fake.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
42dee95b7e
commit
76c7c267a0
1 changed files with 3 additions and 1 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
# -*- ruby -*-
|
||||||
|
load "./rbconfig.rb"
|
||||||
load File.dirname(__FILE__) + '/rubyspec/ruby.2.2.mspec'
|
load File.dirname(__FILE__) + '/rubyspec/ruby.2.2.mspec'
|
||||||
class MSpecScript
|
class MSpecScript
|
||||||
builddir = Dir.pwd
|
builddir = Dir.pwd
|
||||||
|
@ -7,7 +9,7 @@ class MSpecScript
|
||||||
f.read[/^\s*srcdir\s*=\s*(.+)/i] and srcdir = $1
|
f.read[/^\s*srcdir\s*=\s*(.+)/i] and srcdir = $1
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
config = proc{|name| `#{builddir}/miniruby -I#{srcdir} -r#{builddir}/rbconfig -e 'print RbConfig::CONFIG["#{name}"]'`}
|
config = RbConfig::CONFIG
|
||||||
|
|
||||||
# The default implementation to run the specs.
|
# The default implementation to run the specs.
|
||||||
set :target, File.join(builddir, "miniruby#{config['exeext']}")
|
set :target, File.join(builddir, "miniruby#{config['exeext']}")
|
||||||
|
|
Loading…
Add table
Reference in a new issue