diff options
| author | Jack Nagel | 2014-06-03 09:39:07 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-06-03 09:43:27 -0500 |
| commit | 6e616b29c5c47d49e94f2fe2345564cf381b0e0f (patch) | |
| tree | d4bd279e697b3c4d4e7ee36df3b29ed6c78da242 /Library | |
| parent | bd682d551989e05e492280b400274b942824b3ba (diff) | |
| download | brew-6e616b29c5c47d49e94f2fe2345564cf381b0e0f.tar.bz2 | |
Use a || b
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/extend/ENV/shared.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/extend/ENV/shared.rb b/Library/Homebrew/extend/ENV/shared.rb index 1c64c7dd2..57628e920 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, homebrew_cc].compact.first) + @compiler ||= if (cc = ARGV.cc || homebrew_cc) COMPILER_SYMBOL_MAP.fetch(cc) do |other| case other when GNU_GCC_REGEXP |
