Merge pull request #5435 from MikeMcQuaid/macos-cflags-tweaks

hardware: tweak macOS CFLAGS.
This commit is contained in:
Mike McQuaid 2018-12-22 13:21:38 +00:00 committed by GitHub
commit 4f571beb92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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",