diff options
| author | Jack Nagel | 2014-09-18 15:50:54 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2014-09-18 15:50:54 -0500 | 
| commit | 5f6b30158e357e7e1ad11399ffd5f1352fb38b5b (patch) | |
| tree | f8ee2d09351fe807f5b6a0702ee5ac08cec93456 /Library/Homebrew/compilers.rb | |
| parent | 8b902c764cb39aaad41baeb229ce5f1d0a9a9bfc (diff) | |
| download | homebrew-5f6b30158e357e7e1ad11399ffd5f1352fb38b5b.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) | 
