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:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user