aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2025-05-07 11:44:49 +0100
committergingerBill <bill@gingerbill.org>2025-05-07 11:44:49 +0100
commit4274dfc5e22bd088c6a02a0c372045b61a62e669 (patch)
tree13d3d130ca1f3e811023ab52d743da4c51643347
parente0125ccec2998714774f1ab061509f057724e638 (diff)
Only add custom section for Windows (currently)
-rw-r--r--src/llvm_backend.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/llvm_backend.cpp b/src/llvm_backend.cpp
index 5a4cff973..9a708ea9a 100644
--- a/src/llvm_backend.cpp
+++ b/src/llvm_backend.cpp
@@ -2694,7 +2694,8 @@ gb_internal bool lb_generate_code(lbGenerator *gen) {
lb_add_debug_info_for_global_constant_from_entity(gen, e);
}
- { // Custom `.raddbg` section for its debugger
+ // Custom `.raddbg` section for its debugger
+ if (build_context.metrics.os == TargetOs_windows) {
LLVMModuleRef m = default_module->mod;
LLVMContextRef c = default_module->ctx;