We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2ebbc2c + fe59250 commit ef7b239Copy full SHA for ef7b239
setup.py
@@ -1,5 +1,6 @@
1
import os
2
import sys
3
+import platform
4
5
import numpy as np
6
import pybind11
@@ -86,6 +87,8 @@ class BuildExt(build_ext):
86
87
}
88
89
if sys.platform == 'darwin':
90
+ if platform.machine() == 'arm64':
91
+ c_opts['unix'].remove('-march=native')
92
c_opts['unix'] += ['-stdlib=libc++', '-mmacosx-version-min=10.7']
93
link_opts['unix'] += ['-stdlib=libc++', '-mmacosx-version-min=10.7']
94
else:
0 commit comments