forked from mirrors/nixpkgs
enableDebugging: use more suitable gcc flags
-ggdb is supposed to provide better symbol information when used with gdb -Og is the recommended optimization level for debugging purposes
This commit is contained in:
parent
6cf49480a6
commit
5ad448df3a
|
@ -224,7 +224,7 @@ rec {
|
||||||
keepDebugInfo = stdenv: stdenv //
|
keepDebugInfo = stdenv: stdenv //
|
||||||
{ mkDerivation = args: stdenv.mkDerivation (args // {
|
{ mkDerivation = args: stdenv.mkDerivation (args // {
|
||||||
dontStrip = true;
|
dontStrip = true;
|
||||||
NIX_CFLAGS_COMPILE = toString (args.NIX_CFLAGS_COMPILE or "") + " -g -O0";
|
NIX_CFLAGS_COMPILE = toString (args.NIX_CFLAGS_COMPILE or "") + " -ggdb -Og";
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue