aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/brew.h.rb12
1 files changed, 11 insertions, 1 deletions
diff --git a/Library/Homebrew/brew.h.rb b/Library/Homebrew/brew.h.rb
index 6ca3fc157..92a682d72 100644
--- a/Library/Homebrew/brew.h.rb
+++ b/Library/Homebrew/brew.h.rb
@@ -494,7 +494,7 @@ private
end
end
-def gcc_build
+def gcc_42_build
`/usr/bin/gcc-4.2 -v 2>&1` =~ /build (\d{4,})/
if $1
$1.to_i
@@ -508,6 +508,16 @@ def gcc_build
nil
end
end
+alias :gcc_build :gcc_42_build # For compatibility
+
+def gcc_40_build
+ `/usr/bin/gcc-4.0 -v 2>&1` =~ /build (\d{4,})/
+ if $1
+ $1.to_i
+ else
+ nil
+ end
+end
def llvm_build
if MACOS_VERSION >= 10.6