mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Added rake tasks to build Ragel extension.
This commit is contained in:
parent
7e76225480
commit
a4beb37b15
1 changed files with 8 additions and 0 deletions
8
tasks/ragel.rake
Normal file
8
tasks/ragel.rake
Normal file
|
@ -0,0 +1,8 @@
|
|||
# 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|
|
||||
begin
|
||||
sh "ragel -G2 #{t.prerequisites.last} -o #{t.name}"
|
||||
rescue
|
||||
fail "Could not build wrapper using Ragel (it failed or not installed?)"
|
||||
end
|
||||
end
|
Loading…
Add table
Reference in a new issue