diff options
| author | Shaun Jackman | 2014-06-01 08:58:24 -0700 |
|---|---|---|
| committer | Jack Nagel | 2014-06-03 09:43:27 -0500 |
| commit | 0b00bd69cc58b07134ab50b6f4f783542fec60f0 (patch) | |
| tree | d400ed2a8ef53d0390863c86aee7fdf7658990a4 /Library | |
| parent | 23751d1b203e209c1963e860b8103332c9f3b2c9 (diff) | |
| download | homebrew-0b00bd69cc58b07134ab50b6f4f783542fec60f0.tar.bz2 | |
Treat HOMEBREW_CC the same as --cc
Closes #29762.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/extend/ENV/shared.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Library/Homebrew/extend/ENV/shared.rb b/Library/Homebrew/extend/ENV/shared.rb index 5d29a14ae..1c64c7dd2 100644 --- a/Library/Homebrew/extend/ENV/shared.rb +++ b/Library/Homebrew/extend/ENV/shared.rb @@ -94,7 +94,7 @@ module SharedEnvExtension def fcflags; self['FCFLAGS']; end def compiler - @compiler ||= if (cc = ARGV.cc) + @compiler ||= if (cc = [ARGV.cc, homebrew_cc].compact.first) COMPILER_SYMBOL_MAP.fetch(cc) do |other| case other when GNU_GCC_REGEXP @@ -103,8 +103,6 @@ module SharedEnvExtension raise "Invalid value for --cc: #{other}" end end - elsif homebrew_cc - COMPILER_SYMBOL_MAP.fetch(homebrew_cc) { MacOS.default_compiler } else MacOS.default_compiler end |
