diff options
| author | William Woodruff | 2015-06-29 14:09:57 -0400 |
|---|---|---|
| committer | Misty De Meo | 2015-08-21 10:59:09 -0700 |
| commit | 91e598cf3f88591f2146218eaa2ecc2a3a261e31 (patch) | |
| tree | 09355d2f8889cb8e0302cf91fa5357043701abdd /Library/Homebrew/os | |
| parent | 76dcad7c82247e1c342cecda67fda11555788f0d (diff) | |
| download | brew-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.rb | 4 |
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 |
