Skip to content

Commit 78289a5

Browse files
committed
- force build architecture
1 parent 1f49230 commit 78289a5

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

setup.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,14 @@ def build_cmake(self, extension):
205205
if not '-G' in str(cmake_args):
206206
cmake_args.append('-A')
207207
cmake_args.append('win32')
208+
208209
if is_osx:
209-
cmake_args.append('-DCLANG_USE_LIBCPP=ON')
210-
cmake_args.append('-DCMAKE_OSX_DEPLOYMENT_TARGET=10.9')
210+
#cmake_args.append('-DCLANG_USE_LIBCPP=ON')
211+
#cmake_args.append('-DCMAKE_OSX_DEPLOYMENT_TARGET=10.9')
212+
if 'arm64' in suffix:
213+
cmake_args.append('-DCMAKE_OSX_ARCHITECTURES=arm64')
214+
else:
215+
cmake_args.append('-DCMAKE_OSX_ARCHITECTURES=x86_64')
211216

212217
# example of build args
213218
build_args = [

0 commit comments

Comments
 (0)