Skip to content

Commit

Permalink
Support -show-timings for odin doc
Browse files Browse the repository at this point in the history
  • Loading branch information
gingerBill committed Feb 24, 2025
1 parent d0d5cf8 commit faaa055
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3593,10 +3593,15 @@ int main(int arg_count, char const **arg_ptr) {
}

if (build_context.generate_docs) {
MAIN_TIME_SECTION("generate documentation");
if (global_error_collector.count != 0) {
return 1;
}
generate_documentation(checker);

if (build_context.show_timings) {
show_timings(checker, &global_timings);
}
return 0;
}

Expand Down

0 comments on commit faaa055

Please sign in to comment.