aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2013-08-31 11:15:19 -0700
committerAdam Vandenberg2013-08-31 11:15:19 -0700
commit1b82fc4e06b981519028299717bcfa76d2b8ba25 (patch)
tree4161556f636c0c947aab94dd904bec8cef20c9e5 /Library
parentef81779ce95385f4e01d92bbbd8dbf232df3349d (diff)
downloadhomebrew-1b82fc4e06b981519028299717bcfa76d2b8ba25.tar.bz2
Workaround for debrew
See #21720.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/extend/ENV/super.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Homebrew/extend/ENV/super.rb b/Library/Homebrew/extend/ENV/super.rb
index 707b753f0..e82f5508e 100644
--- a/Library/Homebrew/extend/ENV/super.rb
+++ b/Library/Homebrew/extend/ENV/super.rb
@@ -102,7 +102,11 @@ module Superenv
# Homebrew's apple-gcc42 will be outside the PATH in superenv,
# so xcrun may not be able to find it
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
end
end