mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* spec/default.mspec: supports that the build directory != srcdir.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b1c07ee240
commit
30887efb8a
2 changed files with 10 additions and 3 deletions
|
@ -1,3 +1,7 @@
|
|||
Fri Oct 31 12:27:52 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
|
||||
|
||||
* spec/default.mspec: supports that the build directory != srcdir.
|
||||
|
||||
Fri Oct 31 11:35:38 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* encoding.c (rb_enc_set_default_internal): no alias "internal" if
|
||||
|
|
|
@ -7,11 +7,14 @@ class MSpecScript
|
|||
spec/rubyspec/1.9/library
|
||||
]
|
||||
|
||||
srcdir = File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
||||
config = proc{|name| `#{srcdir}/miniruby -I#{srcdir} -rrbconfig -e 'print Config::CONFIG["#{name}"]'`}
|
||||
builddir = File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
||||
srcdir = ENV['SRCDIR']
|
||||
srcdir ||= $1 if File.read("#{builddir}/Makefile")[/^\s*srcdir\s*=\s*(.+)/i]
|
||||
srcdir ||= builddir
|
||||
config = proc{|name| `#{builddir}/miniruby -I#{srcdir} -rrbconfig -e 'print Config::CONFIG["#{name}"]'`}
|
||||
|
||||
# The default implementation to run the specs.
|
||||
set :target, File.join(srcdir, "miniruby#{config['exeext']}")
|
||||
set :target, File.join(builddir, "miniruby#{config['exeext']}")
|
||||
set :flags, %W[
|
||||
-I#{srcdir}/lib
|
||||
-I#{srcdir}/#{config['EXTOUT']}/common
|
||||
|
|
Loading…
Reference in a new issue