aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/development_tools.rb
diff options
context:
space:
mode:
authorShaun Jackman2017-12-20 17:26:17 -0800
committerShaun Jackman2017-12-20 22:33:46 -0800
commit4474ef47f9655509b4f5621423837a29fde78181 (patch)
tree4699e053bfb228d0294768cf23733a7fae68d95b /Library/Homebrew/development_tools.rb
parent426c998ff513a182aced1a5a4c4b7ec6f9203288 (diff)
downloadbrew-4474ef47f9655509b4f5621423837a29fde78181.tar.bz2
DevelopmentTools.installed?: Use locate
Use locate rather than which to search for clang or gcc. locate searches both $HOMEBREW_PREFIX/bin and /usr/bin.
Diffstat (limited to 'Library/Homebrew/development_tools.rb')
-rw-r--r--Library/Homebrew/development_tools.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/development_tools.rb b/Library/Homebrew/development_tools.rb
index b7787d849..ba342c435 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