aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-08-30 16:40:45 -0500
committerJack Nagel2013-08-30 16:42:04 -0500
commit5a7edf25622dc05c9d1c65e422c7c54f647c808e (patch)
tree963870436b6d62f58c5bc3ea7f41d56248071bec /Library
parentbbd2719b2c05c298062de128e212c9c727b6b293 (diff)
downloadhomebrew-5a7edf25622dc05c9d1c65e422c7c54f647c808e.tar.bz2
Simplify handling custom FCFLAGS
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/extend/ENV/shared.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/Library/Homebrew/extend/ENV/shared.rb b/Library/Homebrew/extend/ENV/shared.rb
index 0480058b2..3533b7873 100644
--- a/Library/Homebrew/extend/ENV/shared.rb
+++ b/Library/Homebrew/extend/ENV/shared.rb
@@ -118,9 +118,7 @@ module SharedEnvExtension
self['F77'] ||= self['FC']
if ARGV.include? '--default-fortran-flags'
- flags_to_set = []
- flags_to_set << 'FCFLAGS' unless self['FCFLAGS']
- flags_to_set << 'FFLAGS' unless self['FFLAGS']
+ 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']