فهرست منبع

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;