mirror of
https://github.com/ziglang/zig.git
synced 2024-12-01 01:22:50 +00:00
support --emit in 'test' command
Support the `--emit` switch in `zig --emit asm test file.zig`. The command fails because no tests run (no executable is created) but it emits the requested file. That seems like a good tradeoff.
This commit is contained in:
parent
f1c56f7f22
commit
03f66825d6
@ -924,6 +924,8 @@ int main(int argc, char **argv) {
|
||||
codegen_print_timing_report(g, stdout);
|
||||
return EXIT_SUCCESS;
|
||||
} else if (cmd == CmdTest) {
|
||||
codegen_set_emit_file_type(g, emit_file_type);
|
||||
|
||||
ZigTarget native;
|
||||
get_native_target(&native);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user