summaryrefslogtreecommitdiff
path: root/tool/compile_prelude.rb
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-02-06 10:36:32 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-02-06 10:36:32 +0000
commitcd2a49f3c7e585b871cbac949be36d4bee7c0e31 (patch)
tree779f3013bacf5324c5a6937288d5906fe6faabe9 /tool/compile_prelude.rb
parenta6569ad637e46eeb93bd28fe1ffe3c173dc43903 (diff)
downloadruby-cd2a49f3c7e585b871cbac949be36d4bee7c0e31.tar.gz
* tool/compile_prelude.rb: fix require path.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/compile_prelude.rb')
-rwxr-xr-xtool/compile_prelude.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/compile_prelude.rb b/tool/compile_prelude.rb
index 17b00f955a..7476e3910f 100755
--- a/tool/compile_prelude.rb
+++ b/tool/compile_prelude.rb
@@ -38,7 +38,7 @@ lines_list = preludes.map {|filename|
line.gsub!(/RbConfig::CONFIG\["(\w+)"\]/) {
key = $1
unless mkconf
- require 'rbconfig'
+ require './rbconfig'
mkconf = RbConfig::MAKEFILE_CONFIG.merge('prefix'=>'#{TMP_RUBY_PREFIX}')
setup_ruby_prefix = "TMP_RUBY_PREFIX = $:.reverse.find{|e|e!=\".\"}.sub(%r{(.*)/lib/.*}m, \"\\\\1\")\n"
teardown_ruby_prefix = 'Object.class_eval { remove_const "TMP_RUBY_PREFIX" }'