restrict msbuild to win32 platform (#1172)

This commit is contained in:
Audrey Dutcher 2019-11-19 08:34:56 -08:00 committed by Nguyen Anh Quynh
parent 3b17db0d84
commit 3cea38bff7
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ def build_libraries():
else:
has_msbuild = True
if has_msbuild:
if has_msbuild and SYSTEM == 'win32':
plat = 'Win32' if platform.architecture()[0] == '32bit' else 'x64'
conf = 'Debug' if os.getenv('DEBUG', '') else 'Release'
subprocess.call(['msbuild', '-m', '-p:Platform=' + plat, '-p:Configuration=' + conf], cwd=os.path.join(BUILD_DIR, 'msvc'))