aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-06-03 09:39:07 -0500
committerJack Nagel2014-06-03 09:43:27 -0500
commit6e616b29c5c47d49e94f2fe2345564cf381b0e0f (patch)
treed4bd279e697b3c4d4e7ee36df3b29ed6c78da242 /Library
parentbd682d551989e05e492280b400274b942824b3ba (diff)
downloadbrew-6e616b29c5c47d49e94f2fe2345564cf381b0e0f.tar.bz2
Use a || b
Diffstat (limited to 'Library')
-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