mxcl/homebrew — pull request #11518 by mistydemeo (2012-04-08 16:28:50+00:00)
Title: brew doctor: add check for outdated compilers

I've noticed a *lot* of users lately with Xcode 4.3 who are getting build failures because they haven't installed the CLT. We weren't detecting that since we were only looking for the absence of compilers - if the user installed overtop an old Xcode, they would have some outdated compilers and headers rather than none.

I've added a list of standard compiler versions to MacOS, and a check in `brew doctor` that ensures the user has the correct build for whatever version of Xcode they're using. The list of compilers is from the wiki, but wanted to check that there weren't any wrong build versions before pushing - I've only got a couple Xcode versions to check.

Any objections to placing the compiler list in MacOS? I thought about putting it straight in `brew doctor`, but it seemed like it might be useful elsewhere.