aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 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