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
commit3d3d7c6c8867d84b8d4eb11152efd813255b933b (patch)
tree60765b56047520b3557a6d56a18795ca5b95d15d /Library
parentaca90fce26228a3a6665704c3f6e089c79e378d8 (diff)
downloadhomebrew-3d3d7c6c8867d84b8d4eb11152efd813255b933b.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