move gcroots arg up

This commit is contained in:
Charlotte 🦝 Delenk 2024-12-01 15:47:54 +01:00
parent 1ef23e9750
commit 90cb5d2e0f
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -23,11 +23,11 @@ gcroots = None
for arg in sys.argv[1:]:
if arg == "--gc-roots-dir" or arg == "--max-jobs" or arg == "--workers":
skip_next = 2
if arg == "--gc-roots-dir":
next_to_gcroots = True
if next_to_gcroots:
next_to_gcroots = False
gcroots = arg
if arg == "--gc-roots-dir":
next_to_gcroots = True
if skip_next > 0:
skip_next -= 1
continue