taffybar: keep debug symbols in builds

This commit is contained in:
2026-06-27 00:20:15 -07:00
parent c4df484cce
commit 3655828fcb

View File

@@ -134,6 +134,16 @@
(oa: { (oa: {
doHaddock = false; doHaddock = false;
doCheck = false; doCheck = false;
# Debug build: keep symbols (.symtab) and emit DWARF so SIGSEGV
# coredumps symbolize to real function + source lines instead of
# stripped hex. This library is statically linked into the
# imalison-taffybar executable, so its symbols flow through to the
# final binary. Revert (drop dontStrip + -g3) once the recurring
# GC/heap-corruption crash is root-caused.
dontStrip = true;
configureFlags = (oa.configureFlags or []) ++ [
"--ghc-option=-g3"
];
# Needed for gi-gtk-layer-shell and gi-wireplumber introspection data. # Needed for gi-gtk-layer-shell and gi-wireplumber introspection data.
librarySystemDepends = (oa.librarySystemDepends or []) ++ [ librarySystemDepends = (oa.librarySystemDepends or []) ++ [
pkgs.gtk-layer-shell pkgs.gtk-layer-shell
@@ -175,10 +185,16 @@
pkgs.libxtst.out pkgs.libxtst.out
]) ])
(oa: { (oa: {
# Debug build: keep the executable's .symtab (so statically
# linked RTS + taffybar symbols resolve in coredumps) and emit
# DWARF line info. See the taffybar override above; revert both
# once the recurring GC/heap-corruption SIGSEGV is root-caused.
dontStrip = true;
configureFlags = (oa.configureFlags or []) ++ [ configureFlags = (oa.configureFlags or []) ++ [
"--ghc-option=-optl-fuse-ld=bfd" "--ghc-option=-optl-fuse-ld=bfd"
"--ld-option=-fuse-ld=bfd" "--ld-option=-fuse-ld=bfd"
"--with-ld=ld.bfd" "--with-ld=ld.bfd"
"--ghc-option=-g3"
]; ];
}); });
}; };