Skip to content
Snippets Groups Projects
Commit 6e616b29 authored by Jack Nagel's avatar Jack Nagel
Browse files

Use a || b

parent bd682d55
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, homebrew_cc].compact.first)
@compiler ||= if (cc = ARGV.cc || homebrew_cc)
COMPILER_SYMBOL_MAP.fetch(cc) do |other|
case other
when GNU_GCC_REGEXP
......
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