zig/0002-Enable-build-id-by-default.patch
2024-06-11 10:57:05 +02:00

24 lines
942 B
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Aleksei Bavshin <alebastr89@gmail.org>
Date: Fri, 20 Oct 2023 04:49:54 +0000
Subject: [PATCH] Enable build-id by default
Signed-off-by: Jan200101 <sentrycraft123@gmail.com>
---
src/Compilation.zig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/Compilation.zig b/src/Compilation.zig
index 7af3d7bfd1..78bc2b65c8 100644
--- a/src/Compilation.zig
+++ b/src/Compilation.zig
@@ -1230,7 +1230,7 @@ pub fn create(gpa: Allocator, arena: Allocator, options: CreateOptions) !*Compil
const any_sanitize_thread = options.config.any_sanitize_thread or options.root_mod.sanitize_thread;
const link_eh_frame_hdr = options.link_eh_frame_hdr or any_unwind_tables;
- const build_id = options.build_id orelse .none;
+ const build_id = options.build_id orelse .sha1;
const link_libc = options.config.link_libc;