diff options
| author | Max Howell | 2009-12-30 19:21:11 +0000 |
|---|---|---|
| committer | Max Howell | 2009-12-30 20:52:06 +0000 |
| commit | 62ef92b8372559aefab07e2b65d2023d0f688123 (patch) | |
| tree | 485bc82d8f939eddf9f6d65afc73a6d562cb9d4f | |
| parent | 6bd1741d7dbf117dbb9f52f450790fe579f798a6 (diff) | |
| download | brew-62ef92b8372559aefab07e2b65d2023d0f688123.tar.bz2 | |
If Xcode isn't installed, raise
We were raising but in a completely misleading and unintended fashion.
| -rwxr-xr-x | bin/brew | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -219,10 +219,16 @@ begin raise "Cannot write to #{HOMEBREW_PREFIX}" unless HOMEBREW_PREFIX.writable? ################################################################# warnings - if MACOS_VERSION >= 10.6 - opoo "You should upgrade to Xcode 3.2.1" if llvm_build < 2206 - else - opoo "You should upgrade to Xcode 3.1.4" if gcc_build < 5577 + begin + if MACOS_VERSION >= 10.6 + opoo "You should upgrade to Xcode 3.2.1" if llvm_build < 2206 + else + opoo "You should upgrade to Xcode 3.1.4" if gcc_build < 5577 + end + rescue + # the reason we don't abort is some formula don't require Xcode + # TODO allow formula to declare themselves as "not needing Xcode" + opoo "Xcode is not installed! Builds may fail!" end if macports_or_fink_installed? |
