Workaround for debrew

See Homebrew/homebrew#21720.
This commit is contained in:
Adam Vandenberg 2013-08-31 11:15:19 -07:00
parent 41ac74524d
commit 9dc8ddf054

View File

@ -102,7 +102,11 @@ module Superenv
# Homebrew's apple-gcc42 will be outside the PATH in superenv, # Homebrew's apple-gcc42 will be outside the PATH in superenv,
# so xcrun may not be able to find it # so xcrun may not be able to find it
if self['HOMEBREW_CC'] == 'gcc-4.2' if self['HOMEBREW_CC'] == 'gcc-4.2'
apple_gcc42 = Formula.factory('apple-gcc42') rescue nil apple_gcc42 = begin
Formulary.factory('apple-gcc42')
rescue Exception # in --debug, catch bare exceptions too
nil
end
append_path('PATH', apple_gcc42.opt_prefix/'bin') if apple_gcc42 append_path('PATH', apple_gcc42.opt_prefix/'bin') if apple_gcc42
end end
end end