zig test: forward target CLI args to zig run when using -ofmt=c

Previously, if you used `zig test -ofmt=c -target foobar` then Zig would
try to compile the generated C code with the native target instead of
"foobar".

With this change, `--test-cmd` with e.g. QEMU still won't work, but at
least the binary will get compiled for the correct target.
9b54c9dee8Andrew Kelley committed on 10/30/2022, 10:44:58 PMparent8caed48
1 file changedLine totals unavailable