From 7cc7ae1fd3d3edb586f2661c5b3adda17b872f9f Mon Sep 17 00:00:00 2001 From: Benjamin <115167576+bentheklutz@users.noreply.github.com> Date: Sat, 16 Nov 2024 13:32:11 -0600 Subject: [PATCH] Use options debug format if it is provided (#21995) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Alex Rønne Petersen --- src/Compilation/Config.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Compilation/Config.zig b/src/Compilation/Config.zig index b18cd4dd08..cc59386a1a 100644 --- a/src/Compilation/Config.zig +++ b/src/Compilation/Config.zig @@ -433,6 +433,7 @@ pub fn resolve(options: Options) ResolveError!Config { const debug_format: DebugFormat = b: { if (root_strip and !options.any_non_stripped) break :b .strip; + if (options.debug_format) |x| break :b x; break :b switch (target.ofmt) { .elf, .goff, .macho, .wasm, .xcoff => .{ .dwarf = .@"32" }, .coff => .code_view,