summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWayne Meissner <wmeissner@gmail.com>2012-04-05 15:35:21 +1000
committerWayne Meissner <wmeissner@gmail.com>2012-04-05 15:35:21 +1000
commitc614d75a8a6414f1f981e21fa484f4deb71065e0 (patch)
tree25e433063ee4646e25d697997d5fbb7b32028cb9
parent1bd92b7058bdf34d1e2d9e760a630587ab1db42c (diff)
downloadffi-c614d75a8a6414f1f981e21fa484f4deb71065e0.tar.gz
Add a target to build the win32 gem, that shells out to rake with the correct cross-compilation ruby versions1.1.0rc2
-rw-r--r--Rakefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index eed112a..3af7a15 100644
--- a/Rakefile
+++ b/Rakefile
@@ -5,7 +5,6 @@ USE_RAKE_COMPILER = (RUBY_PLATFORM =~ /java/) ? false : true
if USE_RAKE_COMPILER
gem 'rake-compiler', '>=0.6.0'
require 'rake/extensiontask'
- ENV['RUBY_CC_VERSION'] = '1.8.7:1.9.3'
end
require 'date'
@@ -189,3 +188,6 @@ task 'spec:specdoc' => TEST_DEPS
task :default => :specs
+task 'gem:win32' do
+ sh("rake cross native gem RUBY_CC_VERSION='1.8.7:1.9.3'") || raise("win32 build failed!")
+end