mirror of
https://github.com/ziglang/zig.git
synced 2026-11-22 04:37:39 -05:00
1 parent
7b0542d08b
commit
7e11ef79d6
10 files changed
+185
-132
No files matched your search
+3
-3
@@ -558,13 +558,13 @@ int main(int argc, char **argv) {
|
||||
codegen_build(g);
|
||||
codegen_link(g, out_file);
|
||||
if (timing_info)
|
||||
codegen_print_timing_report(g, stderr);
|
||||
codegen_print_timing_report(g, stdout);
|
||||
return EXIT_SUCCESS;
|
||||
} else if (cmd == CmdParseH) {
|
||||
codegen_parseh(g, in_file_buf);
|
||||
ast_render_decls(g, stdout, 4, g->root_import);
|
||||
if (timing_info)
|
||||
codegen_print_timing_report(g, stderr);
|
||||
codegen_print_timing_report(g, stdout);
|
||||
return EXIT_SUCCESS;
|
||||
} else if (cmd == CmdTest) {
|
||||
codegen_build(g);
|
||||
@@ -576,7 +576,7 @@ int main(int argc, char **argv) {
|
||||
fprintf(stderr, "\nTests failed. Use the following command to reproduce the failure:\n");
|
||||
fprintf(stderr, "./test\n");
|
||||
} else if (timing_info) {
|
||||
codegen_print_timing_report(g, stderr);
|
||||
codegen_print_timing_report(g, stdout);
|
||||
}
|
||||
return (term.how == TerminationIdClean) ? term.code : -1;
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user