ENV: clean up set_cpu_cflags a bit
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
47a81b0b80
commit
78d4fda6d6
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user