aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorMax Howell2011-09-07 12:18:05 +0100
committerMax Howell2011-09-07 12:18:28 +0100
commit8a5633c4f22fc60f662c820fc9b34ad10ea2f5db (patch)
treee165eed66e5151cdf5297a6cc7c1a11f21d9fe0b /Library/Homebrew/cmd
parentb3ddf5355e5d5a3903447ba30c03a4a6ebf56ee5 (diff)
downloadhomebrew-8a5633c4f22fc60f662c820fc9b34ad10ea2f5db.tar.bz2
Check that /usr/bin/cc exists in `brew doctor`
Refs #7454.
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/doctor.rb7
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