Skip to content

Commit 00841d8

Browse files
multiphaseCFDchaeyeunparkmlxd
authored
Fix macos m1 arm wheel (#306)
* Add IsingXY * Auto update version * Trigger CI * Trigger CI * Trigger CI * Trigger CI * Trigger CI * Trigger CI * Trigger CI * Trigger CI * make format * make format * Delete .DS_Store .DS_Store deleted * Delete .DS_Store * Delete .DS_store * Delete .DS_Store * Trigger CI * fix MacOS ARM64 wheels * Auto update version * comment line 66 of wheel_macros_arm64.yml * uncomment line 66 * Remove space at the end of line 89 Co-authored-by: Dev version update bot <[email protected]> Co-authored-by: Lee James O'Riordan <[email protected]>
1 parent 34af426 commit 00841d8

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.github/workflows/wheel_macos_arm64.yml

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ on:
1010
env:
1111
CIBW_BUILD: 'cp37-* cp38-* cp39-* cp310-*'
1212

13+
ARCHS: 'arm64'
14+
1315
# MacOS specific build settings
1416
CIBW_BEFORE_ALL_MACOS: |
1517
brew uninstall --force oclint

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ doc/code/
1919
*.so
2020
cpptests
2121
*.o
22-
22+
.DS_Store
2323
.cache/*
2424
.vscode/*
2525
.ycm_extra_conf.py

setup.py

+5
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ def build_extension(self, ext: CMakeExtension):
7777

7878
# Add more platform dependent options
7979
if platform.system() == "Darwin":
80+
#To support ARM64
81+
if os.getenv('ARCHS') == "arm64":
82+
configure_args += ["-DCMAKE_CXX_FLAGS='-target arm64-apple-macos11'"]
83+
else:
84+
configure_args += []
8085
# Disable OpenMP in M1 Macs
8186
if os.environ.get("USE_OMP"):
8287
configure_args += []

0 commit comments

Comments
 (0)