aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Homebrew/compilers.rb1
-rw-r--r--Library/Homebrew/macos.rb1
2 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/compilers.rb b/Library/Homebrew/compilers.rb
index a68d4f3d2..b871e1aeb 100644
--- a/Library/Homebrew/compilers.rb
+++ b/Library/Homebrew/compilers.rb
@@ -67,6 +67,7 @@ class CompilerSelector
when :clang then MacOS.clang_build_version >= 318 ? 3 : 0.5
when :llvm then 2
when :gcc then 1
+ when :gcc_4_0 then 0.25
end
end
end
diff --git a/Library/Homebrew/macos.rb b/Library/Homebrew/macos.rb
index d3c1d9814..802da0de6 100644
--- a/Library/Homebrew/macos.rb
+++ b/Library/Homebrew/macos.rb
@@ -127,6 +127,7 @@ module MacOS extend self
$1.to_i
end
end
+ alias_method :gcc_4_0_build_version, :gcc_40_build_version
def gcc_42_build_version
@gcc_42_build_version ||= if locate("gcc-4.2") \