ENV/super: copy Hackintosh comment from ENV/std.

This commit is contained in:
Mike McQuaid 2018-12-20 20:09:45 +00:00
parent a2b4d4aac2
commit e6e534157c
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -233,6 +233,9 @@ module Superenv
if ARGV.build_bottle?
arch = ARGV.bottle_arch || Hardware.oldest_cpu
Hardware::CPU.optimization_flags.fetch(arch)
# If the CPU doesn't support SSE4, we cannot trust -march=native or
# -march=<cpu family> to do the right thing because we might be running
# in a VM or on a Hackintosh.
elsif Hardware::CPU.intel? && !Hardware::CPU.sse4?
Hardware::CPU.optimization_flags.fetch(Hardware.oldest_cpu)
elsif ![:gcc_4_0, :gcc_4_2].include?(compiler)