win32/build.py: convert argument parser to loop

Allow multiple arguments.
This commit is contained in:
Max Kellermann 2017-02-20 21:04:44 +01:00
parent b0c60ec124
commit b6ddeaacf2
1 changed files with 7 additions and 2 deletions

View File

@ -7,8 +7,13 @@ configure_args = sys.argv[1:]
x64 = False
if len(configure_args) > 0 and configure_args[0] == '--64':
while len(configure_args) > 0:
arg = configure_args[0]
if arg == '--64':
x64 = True
else:
break
configure_args.pop(0)
if x64:
host_arch = 'x86_64-w64-mingw32'