diff options
| author | Max Howell | 2011-09-07 12:18:05 +0100 |
|---|---|---|
| committer | Max Howell | 2011-09-07 12:18:28 +0100 |
| commit | 8a5633c4f22fc60f662c820fc9b34ad10ea2f5db (patch) | |
| tree | e165eed66e5151cdf5297a6cc7c1a11f21d9fe0b /Library | |
| parent | b3ddf5355e5d5a3903447ba30c03a4a6ebf56ee5 (diff) | |
| download | homebrew-8a5633c4f22fc60f662c820fc9b34ad10ea2f5db.tar.bz2 | |
Check that /usr/bin/cc exists in `brew doctor`
Refs #7454.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/doctor.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index 4e268f630..4f971791c 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -214,6 +214,13 @@ def check_gcc_versions EOS end end + + unless File.exist? '/usr/bin/cc' + puts <<-EOS.undent + You have no /usr/bin/cc. This will cause numerous build issues. Please + reinstall Xcode. + EOS + end end def __check_subdir_access base |
