From 709674cb95f80ca8fb71c39a53e6fb74bcc2782f Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 3 Feb 2012 15:02:35 -0600 Subject: Move old ENV.use_foo? compiler methods to compat Signed-off-by: Jack Nagel --- Library/Homebrew/compat/compatibility.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'Library/Homebrew/compat') 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 -- cgit v1.2.3