diff options
author | Wayne Meissner <wmeissner@gmail.com> | 2012-04-05 15:35:21 +1000 |
---|---|---|
committer | Wayne Meissner <wmeissner@gmail.com> | 2012-04-05 15:35:21 +1000 |
commit | c614d75a8a6414f1f981e21fa484f4deb71065e0 (patch) | |
tree | 25e433063ee4646e25d697997d5fbb7b32028cb9 | |
parent | 1bd92b7058bdf34d1e2d9e760a630587ab1db42c (diff) | |
download | ffi-1.1.0rc2.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-- | Rakefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |