aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2009-12-01 10:51:46 +0000
committerMax Howell2009-12-01 12:07:34 +0000
commit7ced6aaf9eae1e5be2763b166f95497b7929ad97 (patch)
tree1c0f263b1361ca22ab149cc57c55fe7a855dc887 /Library
parent0e2c98640e8e9b87b597596ebd29a815b784da8b (diff)
downloadhomebrew-7ced6aaf9eae1e5be2763b166f95497b7929ad97.tar.bz2
`brew --config` output improved if no GCC
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/brew.h.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Homebrew/brew.h.rb b/Library/Homebrew/brew.h.rb
index 97d8db29f..3e23988ab 100644
--- a/Library/Homebrew/brew.h.rb
+++ b/Library/Homebrew/brew.h.rb
@@ -439,7 +439,11 @@ end
def gcc_build
`/usr/bin/gcc-4.2 -v 2>&1` =~ /build (\d{4,})/
- $1.to_i
+ if $1
+ $1.to_i
+ else
+ nil
+ end
end
def llvm_build