Commit b6ddeaac authored by Max Kellermann's avatar Max Kellermann

win32/build.py: convert argument parser to loop

Allow multiple arguments.
parent b0c60ec1
...@@ -7,8 +7,13 @@ configure_args = sys.argv[1:] ...@@ -7,8 +7,13 @@ configure_args = sys.argv[1:]
x64 = False 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 x64 = True
else:
break
configure_args.pop(0)
if x64: if x64:
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