mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-10-31 06:31:20 +00:00
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 //
|
||||
{ mkDerivation = args: stdenv.mkDerivation (args // {
|
||||
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 New Issue
Block a user