mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-03 14:18:47 +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) {
|
if (build_context.generate_docs) {
|
||||||
|
MAIN_TIME_SECTION("generate documentation");
|
||||||
if (global_error_collector.count != 0) {
|
if (global_error_collector.count != 0) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
generate_documentation(checker);
|
generate_documentation(checker);
|
||||||
|
|
||||||
|
if (build_context.show_timings) {
|
||||||
|
show_timings(checker, &global_timings);
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user