Skip to content
Snippets Groups Projects
Commit bd682d55 authored by Shaun Jackman's avatar Shaun Jackman Committed by Jack Nagel
Browse files

Treat HOMEBREW_CC the same as --cc


Closes Homebrew/homebrew#29762.

Signed-off-by: default avatarJack Nagel <jacknagel@gmail.com>
parent 6e560092
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment