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.
1 parent 14cabd0 commit fe59250Copy full SHA for fe59250
setup.py
@@ -1,5 +1,6 @@
1
import os
2
import sys
3
+import platform
4
5
import numpy as np
6
import pybind11
@@ -82,6 +83,8 @@ class BuildExt(build_ext):
82
83
}
84
85
if sys.platform == 'darwin':
86
+ if platform.machine() == 'arm64':
87
+ c_opts['unix'].remove('-march=native')
88
c_opts['unix'] += ['-stdlib=libc++', '-mmacosx-version-min=10.7']
89
link_opts['unix'] += ['-stdlib=libc++', '-mmacosx-version-min=10.7']
90
else:
0 commit comments