From 4474ef47f9655509b4f5621423837a29fde78181 Mon Sep 17 00:00:00 2001 From: Shaun Jackman Date: Wed, 20 Dec 2017 17:26:17 -0800 Subject: [PATCH] DevelopmentTools.installed?: Use locate Use locate rather than which to search for clang or gcc. locate searches both $HOMEBREW_PREFIX/bin and /usr/bin. --- Library/Homebrew/development_tools.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/development_tools.rb b/Library/Homebrew/development_tools.rb index b7787d8493..ba342c435c 100644 --- a/Library/Homebrew/development_tools.rb +++ b/Library/Homebrew/development_tools.rb @@ -16,7 +16,7 @@ class DevelopmentTools end def installed? - which("clang") || which("gcc") + locate("clang") || locate("gcc") end def installation_instructions