mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-03 11:42:28 +00:00
Support -show-timings for odin doc
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user