Skip to content

Commit

Permalink
fix: make ReleaseSafe use DWARF debug info by default for most outp…
Browse files Browse the repository at this point in the history
…ut formats
  • Loading branch information
leroycep committed Dec 9, 2024
1 parent 1328231 commit b30f554
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Compilation/Config.zig
Original file line number Diff line number Diff line change
Expand Up @@ -426,8 +426,8 @@ pub fn resolve(options: Options) ResolveError!Config {
if (!target_util.hasDebugInfo(target)) break :b .none;
break :b switch (target.ofmt) {
.elf, .goff, .macho, .wasm, .xcoff => switch (root_optimize_mode) {
.Debug => .dwarf32,
.ReleaseSafe, .ReleaseFast => .symbols,
.Debug, .ReleaseSafe => .dwarf32,
.ReleaseFast => .symbols,
.ReleaseSmall => unreachable,
},
.coff => .code_view,
Expand Down

0 comments on commit b30f554

Please sign in to comment.