aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/os
diff options
context:
space:
mode:
authorMike McQuaid2014-01-04 09:14:27 +0000
committerMike McQuaid2014-01-04 09:14:27 +0000
commit4d0a6b12f8dad0271944146fef5c98e4cdcd987b (patch)
treee12f951fbdce80654b9e42f62ebacc4f22a962f8 /Library/Homebrew/os
parent55227a55544eb4e8ecc5ce7e6cf26091ac192698 (diff)
downloadhomebrew-4d0a6b12f8dad0271944146fef5c98e4cdcd987b.tar.bz2
Revert "default_cc: locate already returns Pathnames"
This reverts commit 8ec6123d439e8f4d3586bbca6a426b726bd5e9dd.
Diffstat (limited to 'Library/Homebrew/os')
-rw-r--r--Library/Homebrew/os/mac.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/os/mac.rb b/Library/Homebrew/os/mac.rb
index 067244c5f..24c1b7181 100644
--- a/Library/Homebrew/os/mac.rb
+++ b/Library/Homebrew/os/mac.rb
@@ -99,7 +99,7 @@ module OS
def default_cc
cc = locate 'cc'
- cc.realpath.basename.to_s rescue nil
+ Pathname.new(cc).realpath.basename.to_s rescue nil
end
def default_compiler