| ... | @@ -971,6 +971,11 @@ int main(int argc, char **argv) { | ... | @@ -971,6 +971,11 @@ int main(int argc, char **argv) { |
| 971 | | 971 | |
| 972 | g->enable_cache = get_cache_opt(enable_cache, false); | 972 | g->enable_cache = get_cache_opt(enable_cache, false); |
| 973 | codegen_build_and_link(g); | 973 | codegen_build_and_link(g); |
| | 974 | |
| | 975 | if (timing_info) { |
| | 976 | codegen_print_timing_report(g, stdout); |
| | 977 | } |
| | 978 | |
| 974 | Buf *test_exe_path_unresolved = &g->output_file_path; | 979 | Buf *test_exe_path_unresolved = &g->output_file_path; |
| 975 | Buf *test_exe_path = buf_alloc(); | 980 | Buf *test_exe_path = buf_alloc(); |
| 976 | *test_exe_path = os_path_resolve(&test_exe_path_unresolved, 1); | 981 | *test_exe_path = os_path_resolve(&test_exe_path_unresolved, 1); |
| ... | @@ -981,7 +986,6 @@ int main(int argc, char **argv) { | ... | @@ -981,7 +986,6 @@ int main(int argc, char **argv) { |
| 981 | } | 986 | } |
| 982 | } | 987 | } |
| 983 | | 988 | |
| 984 | | | |
| 985 | if (!target_can_exec(&native, target)) { | 989 | if (!target_can_exec(&native, target)) { |
| 986 | fprintf(stderr, "Created %s but skipping execution because it is non-native.\n", | 990 | fprintf(stderr, "Created %s but skipping execution because it is non-native.\n", |
| 987 | buf_ptr(test_exe_path)); | 991 | buf_ptr(test_exe_path)); |
| ... | @@ -1003,8 +1007,6 @@ int main(int argc, char **argv) { | ... | @@ -1003,8 +1007,6 @@ int main(int argc, char **argv) { |
| 1003 | if (term.how != TerminationIdClean || term.code != 0) { | 1007 | if (term.how != TerminationIdClean || term.code != 0) { |
| 1004 | fprintf(stderr, "\nTests failed. Use the following command to reproduce the failure:\n"); | 1008 | fprintf(stderr, "\nTests failed. Use the following command to reproduce the failure:\n"); |
| 1005 | fprintf(stderr, "%s\n", buf_ptr(test_exe_path)); | 1009 | fprintf(stderr, "%s\n", buf_ptr(test_exe_path)); |
| 1006 | } else if (timing_info) { | | |
| 1007 | codegen_print_timing_report(g, stdout); | | |
| 1008 | } | 1010 | } |
| 1009 | return (term.how == TerminationIdClean) ? term.code : -1; | 1011 | return (term.how == TerminationIdClean) ? term.code : -1; |
| 1010 | } else { | 1012 | } else { |