We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7039f63 commit 055b6cdCopy full SHA for 055b6cd
setup.py
@@ -61,9 +61,11 @@ def get_extensions():
61
print('Compiling without OpenMP...')
62
63
# Compile for mac arm64
64
- if (sys.platform == 'darwin' and platform.machine() == 'arm64'):
65
- extra_compile_args['cxx'] += ['-arch', 'arm64']
66
- extra_link_args += ['-arch', 'arm64']
+ if sys.platform == 'darwin':
+ extra_compile_args['cxx'] += ['-D_LIBCPP_DISABLE_AVAILABILITY']
+ if platform.machine == 'arm64':
67
+ extra_compile_args['cxx'] += ['-arch', 'arm64']
68
+ extra_link_args += ['-arch', 'arm64']
69
70
if suffix == 'cuda':
71
define_macros += [('WITH_CUDA', None)]
0 commit comments