win32/build.py: convert argument parser to loop
Allow multiple arguments.
This commit is contained in:
parent
b0c60ec124
commit
b6ddeaacf2
|
@ -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:
|
||||||
x64 = True
|
arg = configure_args[0]
|
||||||
|
if arg == '--64':
|
||||||
|
x64 = True
|
||||||
|
else:
|
||||||
|
break
|
||||||
|
configure_args.pop(0)
|
||||||
|
|
||||||
if x64:
|
if x64:
|
||||||
host_arch = 'x86_64-w64-mingw32'
|
host_arch = 'x86_64-w64-mingw32'
|
||||||
|
|
Loading…
Reference in New Issue