From 859b0cc5859999b400113fe4718bb7173f9f10b5 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 10 Nov 2023 09:17:55 +0530 Subject: [PATCH] Include -march=native for debug builds --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index efeb089a7..752c94953 100755 --- a/setup.py +++ b/setup.py @@ -415,7 +415,7 @@ def init_env( verbose: bool = True, vcs_rev: str = '', ) -> Env: - native_optimizations = native_optimizations and not sanitize and not debug + native_optimizations = native_optimizations and not sanitize if native_optimizations and is_macos and is_arm: # see https://github.com/kovidgoyal/kitty/issues/3126 # -march=native is not supported when targeting Apple Silicon