qt5: Add debugging symbols in development builds

qt5 build with developerBuild do not contain debug information as
they are stripped by the qt build process.
This commit is contained in:
Daniel Poelzleithner 2021-01-13 00:18:07 +01:00 committed by github-actions[bot]
parent efd2438614
commit f26043ef90

View File

@ -162,6 +162,8 @@ stdenv.mkDerivation {
qtQmlPrefix = "lib/qt-${qtCompatVersion}/qml"; qtQmlPrefix = "lib/qt-${qtCompatVersion}/qml";
qtDocPrefix = "share/doc/qt-${qtCompatVersion}"; qtDocPrefix = "share/doc/qt-${qtCompatVersion}";
dontStrip = developerBuild;
setOutputFlags = false; setOutputFlags = false;
preConfigure = '' preConfigure = ''
export LD_LIBRARY_PATH="$PWD/lib:$PWD/plugins/platforms''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH" export LD_LIBRARY_PATH="$PWD/lib:$PWD/plugins/platforms''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
@ -253,6 +255,7 @@ stdenv.mkDerivation {
++ lib.optionals developerBuild [ ++ lib.optionals developerBuild [
"-developer-build" "-developer-build"
"-no-warnings-are-errors" "-no-warnings-are-errors"
"-force-debug-info"
] ]
++ ( ++ (
if (!stdenv.hostPlatform.isx86_64) then [ if (!stdenv.hostPlatform.isx86_64) then [