summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-14 04:40:15 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-14 04:40:15 +0000
commit54b89699d98f6ede7257325cb418f23156888cec ()
tree9d587320d065d39e55d0390c089862846dcb8992
parent98b6b9e1528bdc2da7bda0e87d9f707b38059d65 (diff)
bigdecimal: dependency
* ext/bigdecimal/extconf.rb: extconf.h depends on the gemspec file. [ruby-core:84247] [Bug #14180] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61221 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ext/bigdecimal/extconf.rb16
1 files changed, 9 insertions, 7 deletions
@@ -1,12 +1,12 @@
# frozen_string_literal: false
require 'mkmf'
-case
-when File.file?(File.expand_path('../bigdecimal.gemspec', __FILE__))
- gemspec_path = File.expand_path('../bigdecimal.gemspec', __FILE__)
-when File.file?(File.expand_path('../../../bigdecimal.gemspec', __FILE__))
- gemspec_path = File.expand_path('../../../bigdecimal.gemspec', __FILE__)
-else
$stderr.puts "Unable to find bigdecimal.gemspec"
abort
end
@@ -30,4 +30,6 @@ have_func("rb_rational_den", "ruby.h")
have_func("rb_array_const_ptr", "ruby.h")
have_func("rb_sym2str", "ruby.h")
-create_makefile('bigdecimal')