From 903dd26a086c4ab4d2415b51f62e25322a42b262 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 15 Jan 2024 20:51:14 +0530 Subject: [PATCH] Sadly -march=x86-64-v2 is not the culprit for the intermittent SIGILL in macOS CI --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 556849499..ff575968b 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 and not is_macos: # 64 bit Intel (on macOS we get SIGILL sometimes) + elif sys.maxsize > 2**32 and not is_arm: march = '-march=x86-64-v2 -mtune=generic' cflags_ = os.environ.get( 'OVERRIDE_CFLAGS', (