From 8762a939c04c4afc1d24fe54a3fe41822f953ea5 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 21 Jan 2024 09:14:48 +0530 Subject: [PATCH] Dont specify arch/tune when building universal binary --- setup.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/setup.py b/setup.py index ff575968b..0c702d1ad 100755 --- a/setup.py +++ b/setup.py @@ -455,11 +455,9 @@ def init_env( if control_flow_protection and not test_compile(cc, control_flow_protection, *env_cppflags, *env_cflags, ldflags=env_ldflags): control_flow_protection = '' march = '' - if is_macos and is_arm: + if not (is_macos and is_arm) and not build_universal_binary: # see https://github.com/kovidgoyal/kitty/issues/3126 # -march=native is not supported when targeting Apple Silicon - pass - else: if native_optimizations: march = '-march=native -mtune=native' elif sys.maxsize > 2**32 and not is_arm: