aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-06-22 18:35:18 -0500
committerJack Nagel2014-06-22 18:38:30 -0500
commit0fda322e0ee3b34e71a2aeb73d67191261580390 (patch)
tree460cab6e664d1d9a81649ff4d92485d8cf2577ce /Library
parent42c20b09797462fecb9bad8cd8b43b627ab1ac31 (diff)
downloadbrew-0fda322e0ee3b34e71a2aeb73d67191261580390.tar.bz2
Use Pathname#split
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/extend/ENV/std.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/Library/Homebrew/extend/ENV/std.rb b/Library/Homebrew/extend/ENV/std.rb
index cf8804fab..7480cdddf 100644
--- a/Library/Homebrew/extend/ENV/std.rb
+++ b/Library/Homebrew/extend/ENV/std.rb
@@ -101,8 +101,7 @@ module Stdenv
end
def determine_cxx
- path = determine_cc
- dir, base = path.dirname, path.basename
+ dir, base = determine_cc.split
dir / base.to_s.sub("gcc", "g++").sub("clang", "clang++")
end