aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
diff options
context:
space:
mode:
authorJack Nagel2014-06-03 09:39:07 -0500
committerJack Nagel2014-06-03 09:43:27 -0500
commit44167d3cd5d85415d530932d41ff943735c67b62 (patch)
tree0fca394f7e86b5ea0d1581e560be88cb9df68ecf /Library/Homebrew/extend
parent0b00bd69cc58b07134ab50b6f4f783542fec60f0 (diff)
downloadhomebrew-44167d3cd5d85415d530932d41ff943735c67b62.tar.bz2
Use a || b
Diffstat (limited to 'Library/Homebrew/extend')
-rw-r--r--Library/Homebrew/extend/ENV/shared.rb2
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