ruby-changes:48415
From: eregon <ko1@a...>
Date: Sun, 29 Oct 2017 01:15:52 +0900 (JST)
Subject: [ruby-changes:48415] eregon:r60529 (trunk): Use ENV['RUBY_EXE'] as RbConfig.ruby might be incorrect
eregon 2017-10-29 01:15:46 +0900 (Sun, 29 Oct 2017) New Revision: 60529 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60529 Log: Use ENV['RUBY_EXE'] as RbConfig.ruby might be incorrect * On a built-but-not-installed-ruby. Modified files: trunk/spec/ruby/optional/capi/spec_helper.rb Index: spec/ruby/optional/capi/spec_helper.rb =================================================================== --- spec/ruby/optional/capi/spec_helper.rb (revision 60528) +++ spec/ruby/optional/capi/spec_helper.rb (revision 60529) @@ -27,7 +27,7 @@ def compile_extension(name) https://github.com/ruby/ruby/blob/trunk/spec/ruby/optional/capi/spec_helper.rb#L27 ruby_library = "#{RbConfig::CONFIG['libdir']}/#{libruby_so}" unless libruby_so and File.exist?(ruby_library) # Statically-compiled lib in the binary - ruby_library = RbConfig.ruby + ruby_library = ENV['RUBY_EXE'] end return lib if File.exist?(lib) and -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/