diff options
| author | gingerBill <bill@gingerbill.org> | 2024-07-08 15:13:40 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-07-08 15:13:40 +0100 |
| commit | 2a219fa8305f2d246d5b3ae5b2b1e25c75bb4332 (patch) | |
| tree | 350669a755e9e0d8645f4ff5edf03cd1abb9254d /src/main.cpp | |
| parent | 8491e2491cd6fe4ea1b5205614f43f1a525cb77f (diff) | |
Correct `-use-separate-module` behaviour
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 8ea0ae62c..89ce93b18 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3304,11 +3304,16 @@ int main(int arg_count, char const **arg_ptr) { } else #endif { - MAIN_TIME_SECTION("LLVM API Code Gen"); lbGenerator *gen = gb_alloc_item(permanent_allocator(), lbGenerator); if (!lb_init_generator(gen, checker)) { return 1; } + + gbString label_code_gen = gb_string_make(heap_allocator(), "LLVM API Code Gen"); + if (gen->modules.count > 1) { + label_code_gen = gb_string_append_fmt(label_code_gen, " ( %4td modules )", gen->modules.count); + } + MAIN_TIME_SECTION_WITH_LEN(label_code_gen, gb_string_length(label_code_gen)); if (lb_generate_code(gen)) { switch (build_context.build_mode) { case BuildMode_Executable: |