authorgravatar for 115167576+bentheklutz@users.noreply.github.comBenjamin <115167576+bentheklutz@users.noreply.github.com> 2024-11-16 13:32:11-06:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2024-11-16 19:32:11+00:00
log7cc7ae1fd3d3edb586f2661c5b3adda17b872f9f
treeac3181eece08595ae69e9da884dc14a678e4c9de
parentccf8488a1e9bd65f354c1613dc504cf5a685e50e
signaturebadge-check Signed by PGP key B5690EEEBB952194

Use options debug format if it is provided (#21995)

Co-authored-by: Alex Rønne Petersen <alex@alexrp.com>

1 files changed, 1 insertions(+), 0 deletions(-)

src/Compilation/Config.zig+1
......@@ -433,6 +433,7 @@ pub fn resolve(options: Options) ResolveError!Config {
433433
434434 const debug_format: DebugFormat = b: {
435435 if (root_strip and !options.any_non_stripped) break :b .strip;
436 if (options.debug_format) |x| break :b x;
436437 break :b switch (target.ofmt) {
437438 .elf, .goff, .macho, .wasm, .xcoff => .{ .dwarf = .@"32" },
438439 .coff => .code_view,