浏览代码

Only add custom section for Windows (currently)

gingerBill 4 月之前
父节点
当前提交
4274dfc5e2
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/llvm_backend.cpp

+ 2 - 1
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;