mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Complete cross compilation tweaks.
This commit is contained in:
parent
0fe8ec9769
commit
05c8ce4c52
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue