From 333c59c3b63cf9c2f35d5de9b2c3712fc7b25c6b Mon Sep 17 00:00:00 2001 From: Michael Graeb Date: Wed, 11 Dec 2024 13:54:49 -0800 Subject: [PATCH] Fix macos universal2 detection in setup.py (#613) Thanks @TingDaoK for discovering this copy/paste bug. This wasn't causing any actual problems (other than longer-than-necessary build times), but it's fixed now. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 6951b501..2eb888a4 100644 --- a/setup.py +++ b/setup.py @@ -68,7 +68,7 @@ def is_macos_universal2(): return False cflags = sysconfig.get_config_var('CFLAGS') - return '-arch x86_64' in cflags and '-arch x86_64' in cflags + return '-arch x86_64' in cflags and '-arch arm64' in cflags def determine_cross_compile_args():