Commit 822ac7b1 authored by Max Kellermann's avatar Max Kellermann

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

parent cc70c5c6
...@@ -10,7 +10,7 @@ configure_args = sys.argv[1:] ...@@ -10,7 +10,7 @@ configure_args = sys.argv[1:]
host_arch = 'i686-w64-mingw32' 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:] configure_args = configure_args[1:]
host_arch = 'x86_64-w64-mingw32' host_arch = 'x86_64-w64-mingw32'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment