diff --git a/Library/Homebrew/compilers.rb b/Library/Homebrew/compilers.rb index a68d4f3d22..b871e1aeb8 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 d3c1d9814f..802da0de62 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") \