Fix conditional in ENV.fortran

This commit is contained in:
Jack Nagel 2013-08-30 18:59:58 -05:00
parent 2cb8c443e4
commit 405ba3df68

View File

@ -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