diff options
Diffstat (limited to 'Library/Homebrew/compilers.rb')
| -rw-r--r-- | Library/Homebrew/compilers.rb | 7 | 
1 files changed, 5 insertions, 2 deletions
| diff --git a/Library/Homebrew/compilers.rb b/Library/Homebrew/compilers.rb index d841e18d0..c3908adec 100644 --- a/Library/Homebrew/compilers.rb +++ b/Library/Homebrew/compilers.rb @@ -80,11 +80,14 @@ class CompilerSelector      :gcc_4_0 => [:gcc_4_0, :gcc, :llvm, :gnu, :clang],    } -  def self.select_for(formula) -    compilers = COMPILER_PRIORITY.fetch(MacOS.default_compiler) +  def self.select_for(formula, compilers=self.compilers)      new(formula, MacOS, compilers).compiler    end +  def self.compilers +    COMPILER_PRIORITY.fetch(MacOS.default_compiler) +  end +    attr_reader :formula, :failures, :versions, :compilers    def initialize(formula, versions, compilers) | 
