keepDebugInfo
pkgs.keepDebugInfo
Docs pulled from | This Revision | about 2 hours ago
Modify a stdenv so that it produces debug builds; that is, binaries have debug info, and compiler optimisations are disabled.
Inputs
stdenv
-
1. Function argument
Noogle detected
Implementation
The following is the current implementation of this function.
keepDebugInfo = stdenv:
stdenv.override (old: {
mkDerivationFromStdenv = extendMkDerivationArgs old (args: {
dontStrip = true;
env = (args.env or {}) // { NIX_CFLAGS_COMPILE = toString (args.env.NIX_CFLAGS_COMPILE or "") + " -ggdb -Og"; };
});
});