aboutsummaryrefslogtreecommitdiff
path: root/src/llvm_backend.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-07-08 14:48:59 +0100
committergingerBill <bill@gingerbill.org>2024-07-08 14:48:59 +0100
commit8491e2491cd6fe4ea1b5205614f43f1a525cb77f (patch)
treef0319d09749d70f1177f1d46403f0841152252a6 /src/llvm_backend.cpp
parent7dd4cccce73dfa7da86e97784a284dfb86cd73f5 (diff)
Experiment with different uses of `-use-separate-modules`
Diffstat (limited to 'src/llvm_backend.cpp')
-rw-r--r--src/llvm_backend.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/llvm_backend.cpp b/src/llvm_backend.cpp
index 375abb0dd..8c82d7117 100644
--- a/src/llvm_backend.cpp
+++ b/src/llvm_backend.cpp
@@ -3437,7 +3437,11 @@ gb_internal bool lb_generate_code(lbGenerator *gen) {
TIME_SECTION("LLVM Add Foreign Library Paths");
lb_add_foreign_library_paths(gen);
- TIME_SECTION("LLVM Object Generation");
+ gbString label_object_generation = gb_string_make(heap_allocator(), "LLVM Object Generation");
+ if (gen->modules.count > 1) {
+ label_object_generation = gb_string_append_fmt(label_object_generation, " (%d modules)", gen->modules.count);
+ }
+ TIME_SECTION_WITH_LEN(label_object_generation, gb_string_length(label_object_generation));
if (build_context.ignore_llvm_build) {
gb_printf_err("LLVM object generation has been ignored!\n");