Skip to content

Commit

Permalink
Complete cross compilation tweaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
luislavena committed Jul 7, 2009
1 parent 0fe8ec9 commit 05c8ce4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tasks/native.rake
Expand Up @@ -4,10 +4,16 @@ require 'rake/extensiontask'
# build http11 C extension
Rake::ExtensionTask.new('http11', HOE.spec) do |ext|
# define target for extension (supporting fat binaries)
if RUBY_PLATFORM =~ /mingw/ then
if RUBY_PLATFORM =~ /mingw|mswin/ then
RUBY_VERSION =~ /(\d+\.\d+)/
ext.lib_dir = "lib/#{$1}"
end

# define cross-compilation tasks when not on Windows.
unless RUBY_PLATFORM =~ /mingw|mswin/ then
ext.cross_compile = true
ext.cross_platform = ['i386-mswin32', 'i386-mingw32']
end
end

# ensure things are built prior testing
Expand Down

0 comments on commit 05c8ce4

Please sign in to comment.