Use a || b

This commit is contained in:
Jack Nagel 2014-06-03 09:39:07 -05:00
parent bd682d5519
commit 6e616b29c5

View File

@ -94,7 +94,7 @@ module SharedEnvExtension
def fcflags; self['FCFLAGS']; end
def compiler
@compiler ||= if (cc = [ARGV.cc, homebrew_cc].compact.first)
@compiler ||= if (cc = ARGV.cc || homebrew_cc)
COMPILER_SYMBOL_MAP.fetch(cc) do |other|
case other
when GNU_GCC_REGEXP