hardware: tweak macOS CFLAGS.
- High Sierra and Sierra support Penryn CPUs. - `-march` implies the relevant `-msse*` flags.
This commit is contained in:
parent
c4c1830473
commit
a2f93fe018
@ -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
|
||||
|
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user