aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/brew.h.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/Library/Homebrew/brew.h.rb b/Library/Homebrew/brew.h.rb
index ed80ecc22..8b73ccbcc 100644
--- a/Library/Homebrew/brew.h.rb
+++ b/Library/Homebrew/brew.h.rb
@@ -428,3 +428,15 @@ private
end
end
end
+
+def gcc_build
+ `/usr/bin/gcc-4.2 -v 2>&1` =~ /build (\d{4,})/
+ $1.to_i
+end
+
+def llvm_build
+ if MACOS_VERSION >= 10.6
+ `/Developer/usr/bin/llvm-gcc-4.2 -v 2>&1` =~ /LLVM build (\d{4,})/
+ $1.to_i
+ end
+end