From 4d0a6b12f8dad0271944146fef5c98e4cdcd987b Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sat, 4 Jan 2014 09:14:27 +0000 Subject: Revert "default_cc: locate already returns Pathnames" This reverts commit 8ec6123d439e8f4d3586bbca6a426b726bd5e9dd. --- Library/Homebrew/os/mac.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library') 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 -- cgit v1.2.3