summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/bigdecimal/bigdecimal.gemspec2
-rw-r--r--ext/bigdecimal/util/extconf.rb6
2 files changed, 4 insertions, 4 deletions
diff --git a/ext/bigdecimal/bigdecimal.gemspec b/ext/bigdecimal/bigdecimal.gemspec
index 68d8f3c00f9..c7a27fe1c37 100644
--- a/ext/bigdecimal/bigdecimal.gemspec
+++ b/ext/bigdecimal/bigdecimal.gemspec
@@ -1,6 +1,6 @@
# coding: utf-8
-bigdecimal_version = '1.4.1'
+bigdecimal_version = '1.4.2'
Gem::Specification.new do |s|
s.name = "bigdecimal"
diff --git a/ext/bigdecimal/util/extconf.rb b/ext/bigdecimal/util/extconf.rb
index 8750db1c52c..b0d56358f85 100644
--- a/ext/bigdecimal/util/extconf.rb
+++ b/ext/bigdecimal/util/extconf.rb
@@ -4,11 +4,11 @@ require 'mkmf'
checking_for(checking_message("Windows")) do
case RUBY_PLATFORM
when /cygwin|mingw/
- if defined?($extlist)
- build_dir = "$(TARGET_SO_DIR)../"
- else
+ if ARGV.include?('-rdevkit') # check `rake -rdevkit compile` case
base_dir = File.expand_path('../../../..', __FILE__)
build_dir = File.join(base_dir, "tmp", RUBY_PLATFORM, "bigdecimal", RUBY_VERSION, "")
+ else
+ build_dir = "$(TARGET_SO_DIR)../"
end
$libs << " #{build_dir}bigdecimal.so"
true