aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-04-21 00:17:22 -0500
committerJack Nagel2014-04-21 00:17:33 -0500
commitb936a1747c7f7ede17417e05a4f69fe9019dc79b (patch)
treef60e4c1cb3de6f9cc2dd36d451698130728f8bbd /Library
parentfb3c83fc89de7fa4ce95e7fa2636e1787f77107b (diff)
downloadhomebrew-b936a1747c7f7ede17417e05a4f69fe9019dc79b.tar.bz2
Filter list before mapping it
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/ENV/4.3/cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/ENV/4.3/cc b/Library/ENV/4.3/cc
index b6ecfea88..5e1ef96b3 100755
--- a/Library/ENV/4.3/cc
+++ b/Library/ENV/4.3/cc
@@ -214,7 +214,7 @@ class Cmd
# We reject brew's lib as we explicitly add this as a -L flag, thus it
# is given higher priority by cc, so it surpasses the system libpath.
# NOTE this only counts if Homebrew is installed at /usr/local
- syspath.map{|d| "#{d}/lib" }.reject{|d| d == "#{brewfix}/lib" }
+ syspath.reject { |d| d == brewfix }.map! { |d| File.join(d, "lib") }
end
def cpath
cpath = path_split("CMAKE_PREFIX_PATH").map! { |d| File.join(d, "include") }