brew doctor: Note there is no GCC in XCode 4.2+

Should help advert confusion surrounding the "could not find gcc 4.2.x" message
recieved by Lion users running the latest version of XCode.

Fixes Homebrew/homebrew#8876.
This commit is contained in:
Charlie Sharpsteen 2011-11-29 14:30:09 -08:00
parent af457fb200
commit 75bc163f49

View File

@ -184,6 +184,7 @@ def check_gcc_versions
if gcc_42 == nil if gcc_42 == nil
puts <<-EOS.undent puts <<-EOS.undent
We couldn't detect gcc 4.2.x. Some formulae require this compiler. We couldn't detect gcc 4.2.x. Some formulae require this compiler.
NOTE: Versions of XCode newer than 4.2 don't include gcc 4.2.x.
EOS EOS
elsif gcc_42 < RECOMMENDED_GCC_42 elsif gcc_42 < RECOMMENDED_GCC_42