diff options
| author | Misty De Meo | 2013-06-11 08:13:06 -0500 |
|---|---|---|
| committer | Misty De Meo | 2013-06-11 08:13:24 -0500 |
| commit | ef054a2d029199a1a67c45c7e44ee82f0f6a828c (patch) | |
| tree | de7ed73a83fd166fe96a049c84436498d23dacbd /Library | |
| parent | 580eea89be1403485869f0fe52b1e52c185cb892 (diff) | |
| download | brew-ef054a2d029199a1a67c45c7e44ee82f0f6a828c.tar.bz2 | |
doctor: add check for osx-gcc-installer
This might not detect all cases, but should detect the two most
common ones.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/doctor.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index de4d40758..a7b59d851 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -232,6 +232,17 @@ def __check_clt_up_to_date end end +def check_for_osx_gcc_installer + if (MacOS.version < 10.7 || MacOS::Xcode.version < "4.1") && \ + MacOS.clang_version == "2.1" then <<-EOS.undent + You have osx-gcc-installer installed. + Homebrew doesn't support osx-gcc-installer, and it is known to cause + some builds to fail. + Please install Xcode #{MacOS::Xcode.latest_version}. + EOS + end +end + def check_for_stray_developer_directory # if the uninstaller script isn't there, it's a good guess neither are # any troublesome leftover Xcode files |
