diff options
Diffstat (limited to 'benchmark/report.rb')
-rw-r--r-- | benchmark/report.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/benchmark/report.rb b/benchmark/report.rb index e931966cca..7aa852fc85 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 |