use process.argsWithAllocator iterator for command line handling

This change refactors the `zig` argument handling (for `build-lib`, etc.
commands) to use a `process.argsWithAllocator` iterator instead of
directly accessing arguments via array indices. This supports the next
commit which will enable us to use a response file argument iterator
here seamlessly.

Helps #10693

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
0778f644b5Stephen Gutekanst committed on 2/20/2022, 8:47:41 PMparent2c8541b
1 file changedLine totals unavailable