mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
merge -r 12332:12336
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@12339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d53a933fdf
commit
46fa180ea0
6 changed files with 25 additions and 3 deletions
10
runruby.rb
10
runruby.rb
|
@ -41,7 +41,9 @@ config["bindir"] = abs_archdir
|
|||
ENV["RUBY"] = File.expand_path(ruby)
|
||||
ENV["PATH"] = [abs_archdir, ENV["PATH"]].compact.join(File::PATH_SEPARATOR)
|
||||
|
||||
if e = ENV["RUBYLIB"]
|
||||
if pure
|
||||
libs << File.expand_path("ext", srcdir) << "-"
|
||||
elsif e = ENV["RUBYLIB"]
|
||||
libs |= e.split(File::PATH_SEPARATOR)
|
||||
end
|
||||
ENV["RUBYLIB"] = $:.replace(libs).join(File::PATH_SEPARATOR)
|
||||
|
@ -56,4 +58,8 @@ if File.file?(libruby_so)
|
|||
end
|
||||
end
|
||||
|
||||
exec ruby, *ARGV
|
||||
cmd = [ruby]
|
||||
cmd << "-rpurelib.rb" if pure
|
||||
cmd.concat(ARGV)
|
||||
cmd.unshift(*debugger) if debugger
|
||||
exec(*cmd)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue