aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/development_tools.rb
diff options
context:
space:
mode:
authorMike McQuaid2016-07-16 21:01:22 +0100
committerMike McQuaid2016-07-27 15:05:42 -0600
commit012fc4709ab2e0189a39a41a5c47e832e037bfb1 (patch)
tree0447008903b5393290c6f29226ae4d9967b0f332 /Library/Homebrew/development_tools.rb
parentc86c600bfd6c5a86eff5fe97ed96fd28fd131fbb (diff)
downloadbrew-012fc4709ab2e0189a39a41a5c47e832e037bfb1.tar.bz2
development_tools: add install instruction helpers.
Diffstat (limited to 'Library/Homebrew/development_tools.rb')
-rw-r--r--Library/Homebrew/development_tools.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Homebrew/development_tools.rb b/Library/Homebrew/development_tools.rb
index b4c2cb34b..bfa54349f 100644
--- a/Library/Homebrew/development_tools.rb
+++ b/Library/Homebrew/development_tools.rb
@@ -19,6 +19,12 @@ class DevelopmentTools
which("clang") || which("gcc")
end
+ def installation_instructions
+ "Install Clang or brew install gcc"
+ end
+ alias_method :custom_installation_instructions,
+ :installation_instructions
+
def default_cc
cc = DevelopmentTools.locate "cc"
cc.realpath.basename.to_s rescue nil