mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
remove code old versions
* spec/rubyspec/optional/capi/spec_helper.rb (compile_extension): remove code old versions. `RbConfig::CONFIG["rubyhdrdir"]` is since 1.9, and `RbConfig::CONFIG["rubyarchhdrdir"]` is since 2.0.0. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ebd763c1f7
commit
1cff8c824a
1 changed files with 2 additions and 6 deletions
|
@ -29,12 +29,8 @@ def compile_extension(name)
|
|||
if RUBY_NAME == 'rbx'
|
||||
hdrdir = RbConfig::CONFIG["rubyhdrdir"]
|
||||
elsif RUBY_NAME =~ /^ruby/
|
||||
if hdrdir = RbConfig::CONFIG["rubyhdrdir"]
|
||||
arch_hdrdir = RbConfig::CONFIG["rubyarchhdrdir"] ||
|
||||
File.join(hdrdir, RbConfig::CONFIG["arch"])
|
||||
else
|
||||
hdrdir = RbConfig::CONFIG["archdir"]
|
||||
end
|
||||
hdrdir = RbConfig::CONFIG["rubyhdrdir"]
|
||||
arch_hdrdir = RbConfig::CONFIG["rubyarchhdrdir"]
|
||||
elsif RUBY_NAME == 'jruby'
|
||||
require 'mkmf'
|
||||
hdrdir = $hdrdir
|
||||
|
|
Loading…
Reference in a new issue