summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
Diffstat (limited to 'win32')
-rwxr-xr-xwin32/build.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/build.py b/win32/build.py
index 28b92c9c1..8e97564bc 100755
--- a/win32/build.py
+++ b/win32/build.py
@@ -10,7 +10,7 @@ configure_args = sys.argv[1:]
host_arch = 'i686-w64-mingw32'
-if configure_args[0] == '--64':
+if len(configure_args) > 0 and configure_args[0] == '--64':
configure_args = configure_args[1:]
host_arch = 'x86_64-w64-mingw32'