doctor: strengthen osx-gcc-installer warning.
We hate it and we should tell people why. Next step may be blocking it altogether.
This commit is contained in:
parent
ce8123badd
commit
8e75e3e043
@ -261,13 +261,26 @@ def __check_clt_up_to_date
|
|||||||
end
|
end
|
||||||
|
|
||||||
def check_for_osx_gcc_installer
|
def check_for_osx_gcc_installer
|
||||||
if (MacOS.version < "10.7" || MacOS::Xcode.version < "4.1") && \
|
if (MacOS.version < "10.7" || MacOS::Xcode.version > "4.1") && \
|
||||||
MacOS.clang_version == "2.1" then <<-EOS.undent
|
MacOS.clang_version == "2.1"
|
||||||
You have osx-gcc-installer installed.
|
message = <<-EOS.undent
|
||||||
Homebrew doesn't support osx-gcc-installer, and it is known to cause
|
You seem to have osx-gcc-installer installed.
|
||||||
some builds to fail.
|
Homebrew doesn't support osx-gcc-installer. It causes many builds to fail and
|
||||||
Please install Xcode #{MacOS::Xcode.latest_version}.
|
is an unlicensed distribution of really old Xcode files.
|
||||||
EOS
|
EOS
|
||||||
|
if MacOS.version >= :mavericks
|
||||||
|
message += <<-EOS.undent
|
||||||
|
Please run `xcode-select --install` to install the CLT.
|
||||||
|
EOS
|
||||||
|
elsif MacOS.version >= :lion
|
||||||
|
message += <<-EOS.undent
|
||||||
|
Please install the CLT or Xcode #{MacOS::Xcode.latest_version}.
|
||||||
|
EOS
|
||||||
|
else
|
||||||
|
message += <<-EOS.undent
|
||||||
|
Please install Xcode #{MacOS::Xcode.latest_version}.
|
||||||
|
EOS
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user