Don't use -march=native on macOS

This commit is contained in:
exstrim401 2022-11-20 19:59:38 +02:00 committed by nillerusr
parent c2cdd880bf
commit ad5790eee6

View File

@ -362,7 +362,7 @@ def configure(conf):
]
flags += ['-funwind-tables', '-fvisibility=default']
elif conf.env.COMPILER_CC not in ['msvc', 'clang']:
elif conf.env.COMPILER_CC != 'msvc' and conf.env.DEST_OS != 'darwin':
flags += ['-march=native']
if conf.env.DEST_CPU in ['x86', 'x86_64']: