win32/build.py: fix IndexError when no command-line arguments are given
This commit is contained in:
parent
cc70c5c67d
commit
822ac7b100
@ -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'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user