FAQ: Difference between revisions
imported>Schmittlauch fixed command for pulling in all build-time dependency source files |
imported>Symphorien →How can I compile a package with debugging symbols included?: link to the DebugSymbols page |
||
Line 83: | Line 83: | ||
== How can I compile a package with debugging symbols included? == | == How can I compile a package with debugging symbols included? == | ||
To build a package with - | To build a package with -Og and -g, and without stripping debug symbols use: | ||
<syntaxhighlight lang="bash">nix-build -E 'with import <nixpkgs> { }; enableDebugging fooPackage'</syntaxhighlight> | <syntaxhighlight lang="bash">nix-build -E 'with import <nixpkgs> { }; enableDebugging fooPackage'</syntaxhighlight> | ||
See also [[Debug Symbols]] | |||
== How can I force a rebuild from source even without modifying the nix expression? == | == How can I force a rebuild from source even without modifying the nix expression? == | ||