mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Quiet rake by disabling features unless the config is right
This commit is contained in:
parent
6461a18769
commit
de7bb0f997
1 changed files with 5 additions and 3 deletions
8
Rakefile
8
Rakefile
|
@ -62,7 +62,7 @@ Rake::ExtensionTask.new("puma_http11", HOE.spec) do |ext|
|
|||
# place extension inside namespace
|
||||
ext.lib_dir = "lib/puma"
|
||||
|
||||
ext.cross_compile = true
|
||||
ext.cross_compile = !!ENV['CROSS']
|
||||
ext.cross_platform = ['i386-mswin32-60', 'i386-mingw32']
|
||||
ext.cross_compiling do |spec|
|
||||
# add fat-binary stub only when cross compiling
|
||||
|
@ -74,8 +74,10 @@ Rake::ExtensionTask.new("puma_http11", HOE.spec) do |ext|
|
|||
end
|
||||
|
||||
# Java (JRuby)
|
||||
Rake::JavaExtensionTask.new("puma_http11", HOE.spec) do |ext|
|
||||
ext.lib_dir = "lib/puma"
|
||||
if defined? JRUBY_VERSION
|
||||
Rake::JavaExtensionTask.new("puma_http11", HOE.spec) do |ext|
|
||||
ext.lib_dir = "lib/puma"
|
||||
end
|
||||
end
|
||||
|
||||
# the following is a fat-binary stub that will be used when
|
||||
|
|
Loading…
Reference in a new issue