summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
Diffstat (limited to 'tool')
-rwxr-xr-xtool/runruby.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/runruby.rb b/tool/runruby.rb
index 21735e8202..e6ddbf7f39 100755
--- a/tool/runruby.rb
+++ b/tool/runruby.rb
@@ -66,7 +66,7 @@ config["bindir"] = abs_archdir
env = {}
-env["RUBY"] = File.expand_path(ruby)
+env["RUBY"] = File.join(abs_archdir, "ruby-runner#{config['EXEEXT']}")
env["PATH"] = [abs_archdir, ENV["PATH"]].compact.join(File::PATH_SEPARATOR)
if e = ENV["RUBYLIB"]