mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Fix ragel tasks for new puma_http11 paths.
This commit is contained in:
parent
dcffc1b765
commit
6f26608a19
1 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
|||
|
||||
# the following tasks ease the build of C file from Ragel one
|
||||
|
||||
file 'ext/http11/http11_parser.c' => ['ext/http11/http11_parser.rl'] do |t|
|
||||
file 'ext/puma_http11/http11_parser.c' => ['ext/puma_http11/http11_parser.rl'] do |t|
|
||||
begin
|
||||
sh "ragel #{t.prerequisites.last} -C -G2 -o #{t.name}"
|
||||
rescue
|
||||
|
@ -9,7 +9,7 @@ file 'ext/http11/http11_parser.c' => ['ext/http11/http11_parser.rl'] do |t|
|
|||
end
|
||||
end
|
||||
|
||||
file 'ext/http11/org/jruby/puma/Http11Parser.java' => ['ext/http11/http11_parser.java.rl'] do |t|
|
||||
file 'ext/puma_http11/org/jruby/puma/Http11Parser.java' => ['ext/puma_http11/http11_parser.java.rl'] do |t|
|
||||
begin
|
||||
sh "ragel #{t.prerequisites.last} -J -G2 -o #{t.name}"
|
||||
rescue
|
||||
|
@ -17,4 +17,4 @@ file 'ext/http11/org/jruby/puma/Http11Parser.java' => ['ext/http11/http11_parser
|
|||
end
|
||||
end
|
||||
|
||||
task :ragel => (defined?(JRUBY_VERSION) ? 'ext/http11/org/jruby/puma/Http11Parser.java' : 'ext/http11/http11_parser.c')
|
||||
task :ragel => (defined?(JRUBY_VERSION) ? 'ext/puma_http11/org/jruby/puma/Http11Parser.java' : 'ext/puma_http11/http11_parser.c')
|
||||
|
|
Loading…
Reference in a new issue