mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
fake.rb: rubyarchhdrdir for rubyspec
* common.mk (test-rubyspec): use fake script to set header directories. * template/fake.rb.in (RUBYOPT): set -r option to propagate to forked processes. * tool/fake.rb (prehook): set rubyarchhdrdir too. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
41b2f1ada4
commit
25f99aef58
3 changed files with 6 additions and 2 deletions
|
@ -597,8 +597,8 @@ $(RBCONFIG): $(srcdir)/tool/mkconfig.rb config.status $(srcdir)/version.h $(PREP
|
|||
|
||||
test-rubyspec-precheck:
|
||||
|
||||
test-rubyspec: test-rubyspec-precheck
|
||||
$(RUNRUBY) $(srcdir)/spec/mspec/bin/mspec run -B $(srcdir)/spec/default.mspec $(MSPECOPT)
|
||||
test-rubyspec: test-rubyspec-precheck $(arch)-fake.rb
|
||||
$(RUNRUBY) -r./$(arch)-fake $(srcdir)/spec/mspec/bin/mspec run -B $(srcdir)/spec/default.mspec $(MSPECOPT)
|
||||
|
||||
RUNNABLE = $(LIBRUBY_RELATIVE:no=un)-runnable
|
||||
runnable: $(RUNNABLE) prog $(srcdir)/tool/mkrunnable.rb PHONY
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
baseruby="@BASERUBY@"
|
||||
ruby="${RUBY-$baseruby}"
|
||||
baseruby=
|
||||
"eval" "{" \
|
||||
"`expr \"$ruby\" : echo > /dev/null || echo exec`" \
|
||||
"$ruby" '-r"`expr \"$0\" : / > /dev/null || pwd`/${0#/}" "$@";' \
|
||||
|
@ -26,3 +27,4 @@ end
|
|||
$:.unshift(File.expand_path(builddir))
|
||||
fake = File.join(top_srcdir, "tool/fake.rb")
|
||||
eval(File.read(fake), nil, fake)
|
||||
ENV["RUBYOPT"] = ["-r#{__FILE__}", ENV["RUBYOPT"]].compact.join(" ")
|
||||
|
|
|
@ -20,8 +20,10 @@ prehook = proc do |extmk|
|
|||
mkconfig = RbConfig::MAKEFILE_CONFIG
|
||||
mkconfig["top_srcdir"] = $top_srcdir = top_srcdir
|
||||
mkconfig["rubyhdrdir"] = "$(top_srcdir)/include"
|
||||
mkconfig["rubyarchhdrdir"] = "$(builddir)/$(EXTOUT)/include/$(arch)"
|
||||
mkconfig["builddir"] = config["builddir"] = builddir
|
||||
config["rubyhdrdir"] = File.join(mkconfig["top_srcdir"], "include")
|
||||
config["rubyarchhdrdir"] = File.join(builddir, config["EXTOUT"], "include", config["arch"])
|
||||
mkconfig["libdir"] = config["libdir"] = mkconfig["topdir"]
|
||||
trace_var(:$ruby, posthook)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue