Merge pull request #5435 from MikeMcQuaid/macos-cflags-tweaks
hardware: tweak macOS CFLAGS.
This commit is contained in:
commit
4f571beb92
@ -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