win32/build.py: add variable "x64", assign host_arch later

This commit is contained in:
Max Kellermann 2017-02-20 21:04:07 +01:00
parent f3b788703e
commit b0c60ec124
1 changed files with 6 additions and 2 deletions

View File

@ -5,11 +5,15 @@ import sys, subprocess
configure_args = sys.argv[1:]
host_arch = 'i686-w64-mingw32'
x64 = False
if len(configure_args) > 0 and configure_args[0] == '--64':
configure_args = configure_args[1:]
x64 = True
if x64:
host_arch = 'x86_64-w64-mingw32'
else:
host_arch = 'i686-w64-mingw32'
# the path to the MPD sources
mpd_path = os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]) or '.', '..'))