Permalink
Browse files

Trigger cross-compilation anything except Windows.

Rake-compiler cross compilation options only should be enabled
when running on platforms like Darwin or Linux.
  • Loading branch information...
luislavena committed May 22, 2009
1 parent 50540b4 commit 17608ff85387eae0689328520fdd2a5989232e69
Showing with 4 additions and 4 deletions.
  1. +4 −4 tasks/native.rake
View
@@ -9,11 +9,11 @@ Rake::ExtensionTask.new('sqlite3_api', GEM_SPEC) do |ext|
# automatically add build options to avoid need of manual input
if RUBY_PLATFORM =~ /mswin|mingw/ then
ext.config_options << "--with-sqlite3-dir=#{sqlite3_lib}"
+ else
+ ext.cross_compile = true
+ ext.cross_platform = ['i386-mswin32', 'i386-mingw32']
+ ext.cross_config_options << "--with-sqlite3-dir=#{sqlite3_lib}"
end
-
- ext.cross_compile = true
- ext.cross_platform = ['i386-mswin32', 'i386-mingw32']
- ext.cross_config_options << "--with-sqlite3-dir=#{sqlite3_lib}"
end
# C wrapper depends on swig file to be generated

0 comments on commit 17608ff

Please sign in to comment.