Skip to content

Commit bcc9fd0

Browse files
authored
Update setup.py for Win32 compilation
1 parent d3f8a25 commit bcc9fd0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

setup.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ def build_extension(self, ext):
110110
# Detect whether 32 / 64 bit Python is used and compile accordingly
111111
if sys.maxsize > 2**32:
112112
cmake_args += ['-A', 'x64']
113+
else:
114+
cmake_args += ['-A', 'Win32']
115+
116+
# Add flag to build with maximum available threads
113117
build_args += ['--', '/m']
114118
else:
115119
# if macos

0 commit comments

Comments
 (0)