aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/compilers.rb
diff options
context:
space:
mode:
authorMisty De Meo2013-09-10 08:17:28 -0700
committerMisty De Meo2013-09-10 08:17:28 -0700
commit55004d81b6f9e5b56e944b629444cebc3a9cccb4 (patch)
treef251f4a42c2f00d31c52fe74b23d70fc2a4a22e2 /Library/Homebrew/compilers.rb
parent42faf1a8607f9a7a55904f907f40b124ba4c51e5 (diff)
downloadbrew-55004d81b6f9e5b56e944b629444cebc3a9cccb4.tar.bz2
Compiler priority: fix llvm-gcc priority
llvm-gcc should still get priority over non-Apple GCCs. Fixes Homebrew/homebrew#22424.
Diffstat (limited to 'Library/Homebrew/compilers.rb')
-rw-r--r--Library/Homebrew/compilers.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/compilers.rb b/Library/Homebrew/compilers.rb
index 8eb6d56fb..6f5b570b0 100644
--- a/Library/Homebrew/compilers.rb
+++ b/Library/Homebrew/compilers.rb
@@ -84,8 +84,8 @@ class CompilerSelector
def priority_for(cc)
case cc
when :clang then MacOS.clang_build_version >= 318 ? 3 : 0.5
- when :gcc then 2
- when :llvm then 1
+ when :gcc then 2.5
+ when :llvm then 2
when :gcc_4_0 then 0.25
# non-Apple gcc compilers
else 1.5