1
0
Fork 0
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:
Evan Phoenix 2012-01-08 16:48:09 -08:00
parent 6461a18769
commit de7bb0f997

View file

@ -62,7 +62,7 @@ Rake::ExtensionTask.new("puma_http11", HOE.spec) do |ext|
# place extension inside namespace # place extension inside namespace
ext.lib_dir = "lib/puma" ext.lib_dir = "lib/puma"
ext.cross_compile = true ext.cross_compile = !!ENV['CROSS']
ext.cross_platform = ['i386-mswin32-60', 'i386-mingw32'] ext.cross_platform = ['i386-mswin32-60', 'i386-mingw32']
ext.cross_compiling do |spec| ext.cross_compiling do |spec|
# add fat-binary stub only when cross compiling # add fat-binary stub only when cross compiling
@ -74,8 +74,10 @@ Rake::ExtensionTask.new("puma_http11", HOE.spec) do |ext|
end end
# Java (JRuby) # Java (JRuby)
Rake::JavaExtensionTask.new("puma_http11", HOE.spec) do |ext| if defined? JRUBY_VERSION
ext.lib_dir = "lib/puma" Rake::JavaExtensionTask.new("puma_http11", HOE.spec) do |ext|
ext.lib_dir = "lib/puma"
end
end end
# the following is a fat-binary stub that will be used when # the following is a fat-binary stub that will be used when