diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-10-30 15:44:58 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-10-30 15:44:58 -0700 |
| commit | 9b54c9dee8a571f1c821b3eb4ee3d2c713cf63fa (patch) | |
| tree | f24ec417b12c1a964eee9a15adbc5454adcd7332 /src/Compilation.zig | |
| parent | 8caed4846018cd185b632bc884c7df81b8dd39dc (diff) | |
| download | zig-9b54c9dee8a571f1c821b3eb4ee3d2c713cf63fa.tar.gz zig-9b54c9dee8a571f1c821b3eb4ee3d2c713cf63fa.zip | |
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.
Diffstat (limited to 'src/Compilation.zig')
0 files changed, 0 insertions, 0 deletions
