aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
diff options
context:
space:
mode:
authorJack Nagel2013-08-30 18:59:58 -0500
committerJack Nagel2013-08-30 18:59:58 -0500
commitc26cf238b790b82b2e3c41c8c74e89e6279ac047 (patch)
tree47952b37d12bce1932a83d0bab3200475c979179 /Library/Homebrew/extend
parent797c037c3ab30de4ad577829535da9ac9f7d8daa (diff)
downloadhomebrew-c26cf238b790b82b2e3c41c8c74e89e6279ac047.tar.bz2
Fix conditional in ENV.fortran
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 2b42d0d23..1baaaccef 100644
--- a/Library/Homebrew/extend/ENV/shared.rb
+++ b/Library/Homebrew/extend/ENV/shared.rb
@@ -129,7 +129,7 @@ module SharedEnvExtension
flags_to_set = FC_FLAG_VARS.reject { |key| self[key] }
flags_to_set.each {|key| self[key] = cflags}
set_cpu_flags(flags_to_set)
- elsif not self['FCFLAGS'] or self['FFLAGS']
+ elsif values_at(*FC_FLAG_VARS).compact.empty?
opoo <<-EOS.undent
No Fortran optimization information was provided. You may want to consider
setting FCFLAGS and FFLAGS or pass the `--default-fortran-flags` option to