From 976cf6a099ee38ac80975b64579816140f7139b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 13 Apr 2011 11:59:23 +0200 Subject: bugfix set USE_RAKE_COMPILER only if ext dir exists --- tasks/constants.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/constants.rb b/tasks/constants.rb index 6f37593..0e84d3a 100644 --- a/tasks/constants.rb +++ b/tasks/constants.rb @@ -20,8 +20,8 @@ end BUILD_DIR = "build" -USE_RAKE_COMPILER = ( (RUBY_PLATFORM =~ /java/) ? false : true ) or test ?d, 'ext' -if USE_RAKE_COMPILER# and test ?d, 'ext' +USE_RAKE_COMPILER = ( ( (RUBY_PLATFORM =~ /java/) ? false : true ) and test ?d, 'ext' ) +if USE_RAKE_COMPILER gem 'rake-compiler', '>=0.6.0' require 'rake/extensiontask' ENV['RUBY_CC_VERSION'] = '1.8.7:1.9.2' -- cgit v1.1-2-g2b99