Skip to content

Commit

Permalink
Fix universal wheel support for MacOS. (#33)
Browse files Browse the repository at this point in the history
* Try specifying ARM64 on Mac.

* Set MacOS to compile universal wheel.
  • Loading branch information
eliphatfs committed Oct 14, 2023
1 parent 559ab13 commit 5746653
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 5746653

Please sign in to comment.