Skip to content

Commit d4f3b1a

Browse files
committed
Set arch properly for win32 builds
1 parent 9a37b8d commit d4f3b1a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

python/setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,8 @@ def build_extension(self, ext):
155155
cmake_args += ['-G', cmake_gen]
156156
elif sys.maxsize > 2**32:
157157
cmake_args += ['-A', 'x64']
158+
else:
159+
cmake_args += ['-A', 'x86']
158160
else:
159161
cmake_args += ['-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=' + extdir]
160162

0 commit comments

Comments
 (0)