summaryrefslogtreecommitdiffstats
path: root/tasks
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-04-13 11:59:23 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-06-30 10:47:12 +0200
commit48151e302f8960991148cd4db3c3812a8da4c595 (patch)
treeaede5a9513e32b67b6353729ecc28f4892dcef08 /tasks
parente9dafdaadb10414d8f62e0c5256dbda3ad5db621 (diff)
downloadskeletons-48151e302f8960991148cd4db3c3812a8da4c595.zip
skeletons-48151e302f8960991148cd4db3c3812a8da4c595.tar.gz
bugfix set USE_RAKE_COMPILER only if ext dir exists
Diffstat (limited to 'tasks')
-rw-r--r--tasks/constants.rb4
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'