hardware: tweak macOS CFLAGS.

- High Sierra and Sierra support Penryn CPUs.
- `-march` implies the relevant `-msse*` flags.
This commit is contained in:
Mike McQuaid 2018-12-22 11:41:49 +00:00
parent c4c1830473
commit a2f93fe018
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70
2 changed files with 5 additions and 2 deletions

View File

@ -1,7 +1,9 @@
module Hardware
def self.oldest_cpu
if MacOS.version >= :sierra
if MacOS.version >= :mojave
:nehalem
elsif MacOS.version >= :sierra
:penryn
else
generic_oldest_cpu
end

View File

@ -7,7 +7,8 @@ module Hardware
class << self
OPTIMIZATION_FLAGS = {
nehalem: "-march=nehalem -msse4.2",
nehalem: "-march=nehalem",
penryn: "-march=penryn",
core2: "-march=core2",
core: "-march=prescott",
armv6: "-march=armv6",