aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
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