summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2017-02-20 21:04:07 +0100
committerMax Kellermann <max@musicpd.org>2017-02-20 21:04:34 +0100
commitb0c60ec124b09a320bedd71c74a9fb0e9ad3e149 (patch)
tree28fd2f6adb1067edcf8ab949b073d2838c0e0f6a /win32
parentf3b788703e4cc728a415008b0ddd70d1016a09cc (diff)
win32/build.py: add variable "x64", assign host_arch later
Diffstat (limited to 'win32')
-rwxr-xr-xwin32/build.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/win32/build.py b/win32/build.py
index 36bfcd8e3..90edfd3ad 100755
--- a/win32/build.py
+++ b/win32/build.py
@@ -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 '.', '..'))