From 2c9fd850f35d30e99ac72946c3fdb88abf21a940 Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Wed, 19 Feb 2014 16:54:05 -0800 Subject: [PATCH] Use GCC 4.2 as the default compiler when installed --- Library/Homebrew/os/mac.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/os/mac.rb b/Library/Homebrew/os/mac.rb index 06411d9d63..0b10a46118 100644 --- a/Library/Homebrew/os/mac.rb +++ b/Library/Homebrew/os/mac.rb @@ -131,7 +131,9 @@ module OS def default_compiler case default_cc - when /^gcc-4.0/ then :gcc_4_0 + # if GCC 4.2 is installed, e.g. via Tigerbrew, prefer it + # over the system's GCC 4.0 + when /^gcc-4.0/ then gcc_42_build_version ? :gcc : :gcc_4_0 when /^gcc/ then :gcc when /^llvm/ then :llvm when "clang" then :clang