Only add custom section for Windows (currently)

This commit is contained in:
gingerBill
2025-05-07 11:44:49 +01:00
parent e0125ccec2
commit 4274dfc5e2

View File

@@ -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;