mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Minor rake cleanup
This commit is contained in:
parent
80eb913b1b
commit
3f95ed35b7
4 changed files with 9 additions and 3 deletions
2
Rakefile
2
Rakefile
|
@ -6,5 +6,7 @@
|
|||
|
||||
require 'rubygems'
|
||||
|
||||
IS_JRUBY = defined?(RUBY_ENGINE) ? RUBY_ENGINE == "jruby" : false
|
||||
|
||||
# load rakefile extensions (tasks)
|
||||
Dir['tasks/*.rake'].sort.each { |f| load f }
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
if ENV['JAVA']
|
||||
if IS_JRUBY
|
||||
|
||||
require 'rake/javaextensiontask'
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
if !ENV['JAVA']
|
||||
unless IS_JRUBY
|
||||
|
||||
# use rake-compiler for building the extension
|
||||
require 'rake/extensiontask'
|
||||
|
|
|
@ -17,4 +17,8 @@ file 'ext/puma_http11/org/jruby/puma/Http11Parser.java' => ['ext/puma_http11/htt
|
|||
end
|
||||
end
|
||||
|
||||
task :ragel => (defined?(JRUBY_VERSION) ? 'ext/puma_http11/org/jruby/puma/Http11Parser.java' : 'ext/puma_http11/http11_parser.c')
|
||||
if IS_JRUBY
|
||||
task :ragel => 'ext/puma_http11/org/jruby/puma/Http11Parser.java'
|
||||
else
|
||||
task :ragel => 'ext/puma_http11/http11_parser.c'
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue