aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/development_tools.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/development_tools.rb')
-rw-r--r--Library/Homebrew/development_tools.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Homebrew/development_tools.rb b/Library/Homebrew/development_tools.rb
index 93372bbc5..14e1a07f7 100644
--- a/Library/Homebrew/development_tools.rb
+++ b/Library/Homebrew/development_tools.rb
@@ -27,7 +27,11 @@ class DevelopmentTools
def default_cc
cc = DevelopmentTools.locate "cc"
- cc.realpath.basename.to_s rescue nil
+ begin
+ cc.realpath.basename.to_s
+ rescue
+ nil
+ end
end
def default_compiler