Permalink
Browse files

Don't barf when I don't have .rake-compiler set up

  • Loading branch information...
bmalex authored and copiousfreetime committed Mar 9, 2011
1 parent 5a42f44 commit 9648250d4598e7710cdf1da90521b82b024b567b
Showing with 6 additions and 1 deletion.
  1. +6 −1 tasks/config.rb
View
@@ -92,7 +92,12 @@
#-----------------------------------------------------------------------
Configuration.for('extension') {
configs Configuration.for('packaging').files.ext.find_all { |x| %w[ extconf.rb ].include?(File.basename(x)) }
- cross_rbconfig ::YAML.load_file( File.expand_path("~/.rake-compiler/config.yml"))
+
+ if File.file?(filename = File.expand_path("~/.rake-compiler/config.yml"))
+ cross_rbconfig ::YAML.load_file( filename )
+ else
+ cross_rbconfig( {} )
+ end
}
#-----------------------------------------------------------------------

0 comments on commit 9648250

Please sign in to comment.