aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/os
diff options
context:
space:
mode:
authorMisty De Meo2014-01-04 01:20:56 -0800
committerMisty De Meo2014-01-04 01:20:56 -0800
commitd7a61617512a120454fd3a7edd7126e050cc4633 (patch)
tree74337b7936ddeb80308290d1391172e27499670b /Library/Homebrew/os
parent3cf2cc853d522b03fea16c599996bd55b3bc03bd (diff)
downloadbrew-d7a61617512a120454fd3a7edd7126e050cc4633.tar.bz2
Recommit ENV changes
Diffstat (limited to 'Library/Homebrew/os')
-rw-r--r--Library/Homebrew/os/mac.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/os/mac.rb b/Library/Homebrew/os/mac.rb
index 24c1b7181..c42e79727 100644
--- a/Library/Homebrew/os/mac.rb
+++ b/Library/Homebrew/os/mac.rb
@@ -99,11 +99,12 @@ module OS
def default_cc
cc = locate 'cc'
- Pathname.new(cc).realpath.basename.to_s rescue nil
+ cc.realpath.basename.to_s rescue nil
end
def default_compiler
case default_cc
+ when /^gcc-4.0/ then :gcc_4_0
when /^gcc/ then :gcc
when /^llvm/ then :llvm
when "clang" then :clang