From 5746653af697f37750a2fe205a99e3384d67607c Mon Sep 17 00:00:00 2001 From: Ruoxi Date: Sat, 14 Oct 2023 14:51:27 -0700 Subject: [PATCH] Fix universal wheel support for MacOS. (#33) * Try specifying ARM64 on Mac. * Set MacOS to compile universal wheel. --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index 996bac1..f10122c 100644 --- a/setup.py +++ b/setup.py @@ -39,6 +39,7 @@ def build_extension(self, ext): cmake_args = [ "-DCMAKE_LIBRARY_OUTPUT_DIRECTORY={}".format(extdir), "-DCMAKE_RUNTIME_OUTPUT_DIRECTORY=$<1:{}>".format(extdir), + "-DCMAKE_OSX_ARCHITECTURES=arm64;x86_64", # "-DPYTHON_EXECUTABLE={}".format(sys.executable), "-DCMAKE_BUILD_TYPE={}".format(cfg), # not used on MSVC, but no harm "-DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded",