aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/doctor.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index 3a47b7133..bef15afff 100644
--- a/Library/Homebrew/cmd/doctor.rb
+++ b/Library/Homebrew/cmd/doctor.rb
@@ -232,6 +232,17 @@ def check_cc
end
end
+def check_standard_compilers
+ return if check_for_latest_xcode # only check if Xcode is up to date
+ if !MacOS.compilers_standard? then <<-EOS.undent
+ Your compilers are different from the standard versions for your Xcode.
+ If you have Xcode 4.3 or newer, you should install the Command Line Tools for
+ Xcode from within Xcode's Download preferences.
+ Otherwise, you should reinstall Xcode.
+ EOS
+ end
+end
+
def __check_subdir_access base
target = HOMEBREW_PREFIX+base
return unless target.exist?