aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2012-02-21 00:13:07 -0600
committerJack Nagel2012-02-21 00:20:29 -0600
commit78d4fda6d65f0a9a0882e2aeaa121a13cd872a10 (patch)
tree491dc993c9284d63314a96025f3678e0d35b10f0 /Library
parent47a81b0b809c56c724643e53b1e0e42b7d016815 (diff)
downloadbrew-78d4fda6d65f0a9a0882e2aeaa121a13cd872a10.tar.bz2
ENV: clean up set_cpu_cflags a bit
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/extend/ENV.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/Library/Homebrew/extend/ENV.rb b/Library/Homebrew/extend/ENV.rb
index 41d0cdf76..eb6af9ccc 100644
--- a/Library/Homebrew/extend/ENV.rb
+++ b/Library/Homebrew/extend/ENV.rb
@@ -340,12 +340,11 @@ Please take one of the following actions:
remove_from_cflags %r{-mssse3}
remove_from_cflags %r{-msse4(\.\d)?}
append_to_cflags xarch unless xarch.empty?
- # Don't set -msse3 and older flags because -march does that for us
+
if ARGV.build_bottle?
- if map.has_key?(:bottle)
- append_to_cflags '-mtune=' + map.fetch(:bottle)
- end
+ append_to_cflags '-mtune=' + map.fetch(:bottle) if map.has_key? :bottle
else
+ # Don't set -msse3 and older flags because -march does that for us
append_to_cflags '-march=' + map.fetch(Hardware.intel_family, default)
end
end