diff options
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -175,16 +175,17 @@ end # optional rake-compiler support in case somebody needs to cross compile begin - spec = Gem::Specification.load('unicorn.gemspec') - require 'rake/extensiontask' - unless test ?r, "ext/unicorn_http/unicorn_http.c" - abort "run 'gmake ragel' or 'make ragel' to generate the Ragel source" - end mk = "ext/unicorn_http/Makefile" if test ?r, mk - abort "run 'gmake -C ext/unicorn_http clean' and " \ - "remove #{mk} before using rake-compiler" + warn "run 'gmake -C ext/unicorn_http clean' and\n" \ + "remove #{mk} before using rake-compiler" + else + unless test ?r, "ext/unicorn_http/unicorn_http.c" + abort "run 'gmake ragel' or 'make ragel' to generate the Ragel source" + end + spec = Gem::Specification.load('unicorn.gemspec') + require 'rake/extensiontask' + Rake::ExtensionTask.new('unicorn_http', spec) end - Rake::ExtensionTask.new('unicorn_http', spec) rescue LoadError end |