aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/os
diff options
context:
space:
mode:
authorWilliam Woodruff2015-06-29 14:09:57 -0400
committerMisty De Meo2015-08-21 10:59:09 -0700
commit91e598cf3f88591f2146218eaa2ecc2a3a261e31 (patch)
tree09355d2f8889cb8e0302cf91fa5357043701abdd /Library/Homebrew/os
parent76dcad7c82247e1c342cecda67fda11555788f0d (diff)
downloadbrew-91e598cf3f88591f2146218eaa2ecc2a3a261e31.tar.bz2
Install: add BuildToolsError and BuildFlagsError
Add these new errors, and guards in formula installation and cmd/{,un,re}install to match, move can_build? to the MacOS module, flatten conditions, remove redundant can_build? check reinstate removed (doctor) check
Diffstat (limited to 'Library/Homebrew/os')
-rw-r--r--Library/Homebrew/os/mac.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/os/mac.rb b/Library/Homebrew/os/mac.rb
index 185126548..4e69a6035 100644
--- a/Library/Homebrew/os/mac.rb
+++ b/Library/Homebrew/os/mac.rb
@@ -52,6 +52,10 @@ module OS
end
end
+ def can_build?
+ Xcode.installed? || CLT.installed?
+ end
+
def active_developer_dir
@active_developer_dir ||= Utils.popen_read("/usr/bin/xcode-select", "-print-path").strip
end