summaryrefslogtreecommitdiff
path: root/tool/fake.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-02-25 17:19:57 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-02-25 17:19:57 +0000
commit25f99aef585e5d762cf2a479dea57525ccb77273 (patch)
treebf39dbfabe2b5b79777cad4601377b1f946c0155 /tool/fake.rb
parent41b2f1ada419659b66ab29d3525f35f08f9a1b68 (diff)
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
Diffstat (limited to 'tool/fake.rb')
-rw-r--r--tool/fake.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/tool/fake.rb b/tool/fake.rb
index 7d3a471..0a8e250 100644
--- a/tool/fake.rb
+++ b/tool/fake.rb
@@ -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