Correctly identify Skylake CPUs on Darwin. (#13377)

* Correctly identify Skylake CPUs on Darwin.

* Add a test for haswell on Mojave.
This commit is contained in:
Chris Green
2019-10-24 12:44:58 -05:00
committed by Greg Becker
parent f65f2450df
commit 0913328812
4 changed files with 12 additions and 1 deletions

View File

@@ -117,6 +117,10 @@ def sysctl(*args):
info['flags'] += ' sse4_2'
if 'avx1.0' in info['flags']:
info['flags'] += ' avx'
if 'clfsopt' in info['flags']:
info['flags'] += ' clflushopt'
if 'xsave' in info['flags']:
info['flags'] += ' xsavec xsaveopt'
return info