diff options
| author | Jack Nagel | 2012-02-03 15:02:35 -0600 |
|---|---|---|
| committer | Jack Nagel | 2012-02-03 23:01:28 -0600 |
| commit | 709674cb95f80ca8fb71c39a53e6fb74bcc2782f (patch) | |
| tree | 48a7317281c59eb12800594ae9d8d32ae41211af /Library/Homebrew/compat | |
| parent | d312a54d461b8683c8a20cd13bd83afd904d4658 (diff) | |
| download | brew-709674cb95f80ca8fb71c39a53e6fb74bcc2782f.tar.bz2 | |
Move old ENV.use_foo? compiler methods to compat
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Homebrew/compat')
| -rw-r--r-- | Library/Homebrew/compat/compatibility.rb | 14 |
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 |
