From 25ae263252c101289754d8be4a114fce797e8f7e Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Sun, 21 Jul 2019 12:21:27 +0900 Subject: Drop to support fat gem support. ref. https://github.com/ruby/bigdecimal/pull/149 --- Rakefile | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'Rakefile') diff --git a/Rakefile b/Rakefile index 345edcd..d08e096 100644 --- a/Rakefile +++ b/Rakefile @@ -28,21 +28,7 @@ if RUBY_PLATFORM =~ /java/ end else require 'rake/extensiontask' - spec = Gem::Specification.load("psych.gemspec") - Rake::ExtensionTask.new("psych", spec) do |ext| - ext.lib_dir = File.join(*['lib', ENV['FAT_DIR']].compact) - ext.cross_compile = true - ext.cross_platform = %w[x86-mingw32 x64-mingw32] - ext.cross_compiling do |s| - s.files.concat ["lib/2.3/psych.so", "lib/2.4/psych.so", "lib/2.5/psych.so"] - end - end -end - -desc "Compile binaries for mingw platform using rake-compiler-dock" -task 'build:mingw' do - require 'rake_compiler_dock' - RakeCompilerDock.sh "bundle && rake cross native gem RUBY_CC_VERSION=2.5.0:2.4.0:2.3.0" + Rake::ExtensionTask.new("psych") end task :default => [:compile, :test] -- cgit v1.2.3