Commit: 00832c3949982d9ef4e717cba080629c50f91610
Parent: c0778e40a893cf7de7d528c9091c7e893bb12157
Author: Randy Palamar
Date: Wed, 3 Sep 2025 14:25:24 -0600
build: emit dwarf-v4 debug info on unix
gdb doesn't implement dwarf-v5 support correctly so the
information produced by modern clang is unusable. hopefully ryan
finishes the linux port of raddebugger soon so I don't have to
deal with this crap anymore
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/build.c b/build.c
@@ -423,7 +423,7 @@ cmd_base(Arena *a, Options *o)
if (is_w32 && is_clang) cmd_append(a, &result, "-fms-extensions");
- if (o->debug && is_unix) cmd_append(a, &result, "-ggdb");
+ if (o->debug && is_unix) cmd_append(a, &result, "-gdwarf-4");
/* NOTE(rnp): need to avoid w32-gcc for ci */
b32 sanitize = o->sanitize && !is_msvc && !(is_w32 && is_gcc);