diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-04-13 11:59:23 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-04-13 11:59:23 +0200 |
commit | 976cf6a099ee38ac80975b64579816140f7139b2 (patch) | |
tree | aede5a9513e32b67b6353729ecc28f4892dcef08 /tasks/constants.rb | |
parent | e9dafdaadb10414d8f62e0c5256dbda3ad5db621 (diff) | |
download | skeletons-976cf6a099ee38ac80975b64579816140f7139b2.zip skeletons-976cf6a099ee38ac80975b64579816140f7139b2.tar.gz |
bugfix set USE_RAKE_COMPILER only if ext dir exists
Diffstat (limited to 'tasks/constants.rb')
-rw-r--r-- | tasks/constants.rb | 4 |
1 files 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' |