summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorSHIBATA Hiroshi <hsbt@ruby-lang.org>2017-07-12 13:44:56 +0900
committerSHIBATA Hiroshi <hsbt@ruby-lang.org>2017-07-12 13:44:56 +0900
commit1a4f377be06769f06b7c12e723b79535c6c4f260 (patch)
treebca19516c37a80049af4fc12986a9ef9246e3b50 /Rakefile
parent52ec7c818098422e3ab87a6de85bc6f81706b238 (diff)
downloadpsych-1a4f377be06769f06b7c12e723b79535c6c4f260.tar.gz
only evaluate gemspec for cross copilation
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/Rakefile b/Rakefile
index a0b6dbd..b8f37ff 100644
--- a/Rakefile
+++ b/Rakefile
@@ -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