diff options
| author | Max Howell | 2011-09-07 12:18:05 +0100 |
|---|---|---|
| committer | Max Howell | 2011-09-07 12:18:28 +0100 |
| commit | b145d075c16fb88cf4faa38e07fea0125c03675d (patch) | |
| tree | f346a22f7d7b219458623ba7628dd17aa2e54e82 | |
| parent | d37918b20fe94216b2b804e9bdfc47c5dc1f5ad9 (diff) | |
| download | brew-b145d075c16fb88cf4faa38e07fea0125c03675d.tar.bz2 | |
Check that /usr/bin/cc exists in `brew doctor`
Refs Homebrew/homebrew#7454.
| -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 |
