diff options
| -rw-r--r-- | Library/Homebrew/compat/compatibility.rb | 14 | ||||
| -rw-r--r-- | Library/Homebrew/extend/ENV.rb | 12 |
2 files changed, 14 insertions, 12 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 diff --git a/Library/Homebrew/extend/ENV.rb b/Library/Homebrew/extend/ENV.rb index c02071c09..2ea1127c1 100644 --- a/Library/Homebrew/extend/ENV.rb +++ b/Library/Homebrew/extend/ENV.rb @@ -320,18 +320,6 @@ Please take one of the following actions: end end - # don't use in new code - # don't remove though, but do add to compatibility.rb - def use_clang? - compiler == :clang - end - def use_gcc? - compiler == :gcc - end - def use_llvm? - compiler == :llvm - end - def make_jobs # '-j' requires a positive integral argument if self['HOMEBREW_MAKE_JOBS'].to_i > 0 |
