diff options
| author | Misty De Meo | 2014-02-19 16:54:05 -0800 |
|---|---|---|
| committer | Misty De Meo | 2016-04-22 22:37:21 -0700 |
| commit | 2c9fd850f35d30e99ac72946c3fdb88abf21a940 (patch) | |
| tree | 3915c1224bc8b28253cc8ddfc55e5740146267ca /Library | |
| parent | 06a356d9ec074f6509ac83c5bce3d7bbcc679978 (diff) | |
| download | brew-2c9fd850f35d30e99ac72946c3fdb88abf21a940.tar.bz2 | |
Use GCC 4.2 as the default compiler when installed
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/os/mac.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/os/mac.rb b/Library/Homebrew/os/mac.rb index 06411d9d6..0b10a4611 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 |
