aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/diagnostic.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/diagnostic.rb')
-rw-r--r--Library/Homebrew/diagnostic.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/Library/Homebrew/diagnostic.rb b/Library/Homebrew/diagnostic.rb
index 8bce63559..020be9053 100644
--- a/Library/Homebrew/diagnostic.rb
+++ b/Library/Homebrew/diagnostic.rb
@@ -85,6 +85,21 @@ module Homebrew
end
############# END HELPERS
+ def all_development_tools_checks
+ %w[
+ check_for_installed_developer_tools
+ ]
+ end
+
+ def check_for_installed_developer_tools
+ return if DevelopmentTools.installed?
+
+ <<-EOS.undent
+ No developer tools installed.
+ Install clang or gcc.
+ EOS
+ end
+
# See https://github.com/Homebrew/legacy-homebrew/pull/9986
def check_path_for_trailing_slashes
all_paths = ENV["PATH"].split(File::PATH_SEPARATOR)