From a9111f9a4016859dd10ad33c8ca59d531e642cc2 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 14 Jan 2024 14:55:05 +0530 Subject: [PATCH] Try disabling x86-64-v2 on macOS --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 945290158..556849499 100755 --- a/setup.py +++ b/setup.py @@ -462,7 +462,7 @@ def init_env( else: if native_optimizations: march = '-march=native -mtune=native' - elif sys.maxsize > 2**32 and not is_arm: # 64 bit Intel + elif sys.maxsize > 2**32 and not is_arm and not is_macos: # 64 bit Intel (on macOS we get SIGILL sometimes) march = '-march=x86-64-v2 -mtune=generic' cflags_ = os.environ.get( 'OVERRIDE_CFLAGS', (