diff options
| author | Jack Nagel | 2014-09-18 15:50:54 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2014-09-18 15:50:54 -0500 | 
| commit | c5f2f6b539247a00d446a6895883c2389a82f0d3 (patch) | |
| tree | a1575a4d2f73236d0f2abe3f6323c6bde2d84779 /Library/Homebrew/compilers.rb | |
| parent | 04dae13ae7f014acf3a3300536546c7e12845884 (diff) | |
| download | brew-c5f2f6b539247a00d446a6895883c2389a82f0d3.tar.bz2 | |
Make --cc override the compiler selector
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) | 
