If Xcode isn't installed, raise
We were raising but in a completely misleading and unintended fashion.
This commit is contained in:
parent
6bd1741d7d
commit
62ef92b837
6
bin/brew
6
bin/brew
@ -219,11 +219,17 @@ begin
|
|||||||
raise "Cannot write to #{HOMEBREW_PREFIX}" unless HOMEBREW_PREFIX.writable?
|
raise "Cannot write to #{HOMEBREW_PREFIX}" unless HOMEBREW_PREFIX.writable?
|
||||||
|
|
||||||
################################################################# warnings
|
################################################################# warnings
|
||||||
|
begin
|
||||||
if MACOS_VERSION >= 10.6
|
if MACOS_VERSION >= 10.6
|
||||||
opoo "You should upgrade to Xcode 3.2.1" if llvm_build < 2206
|
opoo "You should upgrade to Xcode 3.2.1" if llvm_build < 2206
|
||||||
else
|
else
|
||||||
opoo "You should upgrade to Xcode 3.1.4" if gcc_build < 5577
|
opoo "You should upgrade to Xcode 3.1.4" if gcc_build < 5577
|
||||||
end
|
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?
|
if macports_or_fink_installed?
|
||||||
opoo "It appears you have Macports or Fink installed"
|
opoo "It appears you have Macports or Fink installed"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user