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
|
module Hardware
|
||||||
def self.oldest_cpu
|
def self.oldest_cpu
|
||||||
if MacOS.version >= :sierra
|
if MacOS.version >= :mojave
|
||||||
:nehalem
|
:nehalem
|
||||||
|
elsif MacOS.version >= :sierra
|
||||||
|
:penryn
|
||||||
else
|
else
|
||||||
generic_oldest_cpu
|
generic_oldest_cpu
|
||||||
end
|
end
|
||||||
|
@ -7,7 +7,8 @@ module Hardware
|
|||||||
|
|
||||||
class << self
|
class << self
|
||||||
OPTIMIZATION_FLAGS = {
|
OPTIMIZATION_FLAGS = {
|
||||||
nehalem: "-march=nehalem -msse4.2",
|
nehalem: "-march=nehalem",
|
||||||
|
penryn: "-march=penryn",
|
||||||
core2: "-march=core2",
|
core2: "-march=core2",
|
||||||
core: "-march=prescott",
|
core: "-march=prescott",
|
||||||
armv6: "-march=armv6",
|
armv6: "-march=armv6",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user