diff --git a/src/Compilation/Config.zig b/src/Compilation/Config.zig index b18cd4dd082418d6eb838625c7bb4924c7397409..cc59386a1a375076d1c6b968b499e7ec683881fa 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,