Skip to content

Commit

Permalink
Merge pull request NixOS#109239 from poelzi/qt-debug-symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 committed Jan 27, 2021
2 parents e6a8527 + 0c0d5a2 commit 8f69090
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/development/libraries/qt-5/modules/qtbase.nix
Expand Up @@ -165,6 +165,9 @@ stdenv.mkDerivation {
qtQmlPrefix = "lib/qt-${qtCompatVersion}/qml";
qtDocPrefix = "share/doc/qt-${qtCompatVersion}";

# don't strip away debugging symbols when build with developerBuild
dontStrip = developerBuild;

setOutputFlags = false;
preConfigure = ''
export LD_LIBRARY_PATH="$PWD/lib:$PWD/plugins/platforms''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
Expand Down Expand Up @@ -257,6 +260,7 @@ stdenv.mkDerivation {
++ lib.optionals developerBuild [
"-developer-build"
"-no-warnings-are-errors"
"-force-debug-info"
]
++ (
if (!stdenv.hostPlatform.isx86_64) then [
Expand Down

0 comments on commit 8f69090

Please sign in to comment.