summaryrefslogtreecommitdiff
path: root/benchmark
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-12-31 15:00:04 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-12-31 15:00:04 +0000
commitc0b4e90f08a188430c17e5668603704906292088 (patch)
tree58e30bf59b341acc68d9d6358f8e5ab702da6bb7 /benchmark
parent070489975d3a61aeebeedbc5a53d9a99197ca984 (diff)
* tool/mkconfig.rb: generate RbConfig.ruby in rbconfig.rb.
* lib/webrick/httpservlet/cgihandler.rb: use RbConfig.ruby. * test/ruby/envutil.rb: ditto. * benchmark/report.rb: ditto. * benchmark/runc.rb: ditto. * tool/eval.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/report.rb4
-rw-r--r--benchmark/runc.rb4
2 files changed, 2 insertions, 6 deletions
diff --git a/benchmark/report.rb b/benchmark/report.rb
index e931966..7aa852f 100644
--- a/benchmark/report.rb
+++ b/benchmark/report.rb
@@ -24,9 +24,7 @@ def exec_command type, file, w
end
def benchmark cmd
- rubybin = ENV['RUBY'] || File.join(
- RbConfig::CONFIG["bindir"],
- RbConfig::CONFIG["ruby_install_name"] + RbConfig::CONFIG["EXEEXT"])
+ rubybin = ENV['RUBY'] || RbConfig.ruby
IO.popen(rubybin, 'r+'){|io|
io.write cmd
diff --git a/benchmark/runc.rb b/benchmark/runc.rb
index ec1d36a..97c5cef 100644
--- a/benchmark/runc.rb
+++ b/benchmark/runc.rb
@@ -5,9 +5,7 @@
require 'benchmark'
require 'rbconfig'
-$rubybin = ENV['RUBY'] || File.join(
- RbConfig::CONFIG["bindir"],
- RbConfig::CONFIG["ruby_install_name"] + RbConfig::CONFIG["EXEEXT"])
+$rubybin = ENV['RUBY'] || RbConfig.ruby
def runfile file
puts file