From 8ec6123d439e8f4d3586bbca6a426b726bd5e9dd Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Fri, 3 Jan 2014 18:24:54 -0800 Subject: default_cc: locate already returns Pathnames --- 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 24c1b7181..067244c5f 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' - Pathname.new(cc).realpath.basename.to_s rescue nil + cc.realpath.basename.to_s rescue nil end def default_compiler -- cgit v1.2.3