diff options
author | SHIBATA Hiroshi <hsbt@ruby-lang.org> | 2017-07-12 13:44:56 +0900 |
---|---|---|
committer | SHIBATA Hiroshi <hsbt@ruby-lang.org> | 2017-07-12 13:44:56 +0900 |
commit | 1a4f377be06769f06b7c12e723b79535c6c4f260 (patch) | |
tree | bca19516c37a80049af4fc12986a9ef9246e3b50 | |
parent | 52ec7c818098422e3ab87a6de85bc6f81706b238 (diff) | |
download | psych-1a4f377be06769f06b7c12e723b79535c6c4f260.zip |
only evaluate gemspec for cross copilation
-rw-r--r-- | Rakefile | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -10,11 +10,9 @@ Rake::TestTask.new(:test) do |t| t.warning = true end -spec = eval File.read("psych.gemspec") - if RUBY_PLATFORM =~ /java/ require 'rake/javaextensiontask' - Rake::JavaExtensionTask.new("psych", spec) do |ext| + Rake::JavaExtensionTask.new("psych") do |ext| require 'maven/ruby/maven' # uses Mavenfile to write classpath into pkg/classpath # and tell maven via system properties the snakeyaml version @@ -28,6 +26,7 @@ if RUBY_PLATFORM =~ /java/ end else require 'rake/extensiontask' + spec = eval File.read("psych.gemspec") Rake::ExtensionTask.new("psych", spec) do |ext| ext.lib_dir = File.join(*['lib', ENV['FAT_DIR']].compact) ext.cross_compile = true |