Skip to content

Commit

Permalink
default.mspec: use RbConfig::CONFIG
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
nobu committed Feb 15, 2015
1 parent 42dee95 commit 76c7c26
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/default.mspec
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# -*- ruby -*-
load "./rbconfig.rb"
load File.dirname(__FILE__) + '/rubyspec/ruby.2.2.mspec'
class MSpecScript
builddir = Dir.pwd
Expand All @@ -7,7 +9,7 @@ class MSpecScript
f.read[/^\s*srcdir\s*=\s*(.+)/i] and srcdir = $1
}
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.
set :target, File.join(builddir, "miniruby#{config['exeext']}")
Expand Down

0 comments on commit 76c7c26

Please sign in to comment.