summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-02-25 17:19:57 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-02-25 17:19:57 (GMT)
commit25f99aef585e5d762cf2a479dea57525ccb77273 (patch)
treebf39dbfabe2b5b79777cad4601377b1f946c0155 /template
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 'template')
-rw-r--r--template/fake.rb.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/template/fake.rb.in b/template/fake.rb.in
index 6f5de50..8e461c5 100644
--- a/template/fake.rb.in
+++ b/template/fake.rb.in
@@ -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(" ")