aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/brew.h.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/brew.h.rb b/Library/Homebrew/brew.h.rb
index a5047df56..a35ca0b49 100644
--- a/Library/Homebrew/brew.h.rb
+++ b/Library/Homebrew/brew.h.rb
@@ -579,3 +579,8 @@ def llvm_build
$1.to_i
end
end
+
+def _compiler_recommendation build, recommended
+ message = (!build.nil? && build < recommended) ? "(#{recommended} or newer recommended)" : ""
+ return build, message
+end