aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/compat
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/compat')
-rw-r--r--Library/Homebrew/compat/compatibility.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/Library/Homebrew/compat/compatibility.rb b/Library/Homebrew/compat/compatibility.rb
index ac94feff8..ab3377e88 100644
--- a/Library/Homebrew/compat/compatibility.rb
+++ b/Library/Homebrew/compat/compatibility.rb
@@ -80,3 +80,17 @@ end
class UnidentifiedFormula < Formula
end
+
+module HomebrewEnvExtension extend self
+ def use_clang?
+ compiler == :clang
+ end
+
+ def use_gcc?
+ compiler == :gcc
+ end
+
+ def use_llvm?
+ compiler == :llvm
+ end
+end