From 405ba3df68ce1e03800f67d631b76bbec2b1d14a Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 30 Aug 2013 18:59:58 -0500 Subject: [PATCH] Fix conditional in ENV.fortran --- Library/Homebrew/extend/ENV/shared.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/extend/ENV/shared.rb b/Library/Homebrew/extend/ENV/shared.rb index 2b42d0d234..1baaaccef5 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