win32/build.py: fix IndexError when no command-line arguments are given

This commit is contained in:
Max Kellermann 2015-01-27 09:07:41 +01:00
parent cc70c5c67d
commit 822ac7b100

View File

@ -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'