macdeployqt: Detect debug dylibs, not just debug frameworks

A debug dylib has a binary name like libQt6Core_debug.6.dylib

Pick-to: 6.5
Change-Id: I54a7a7017b880c734777d0738acf46c19689148d
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
This commit is contained in:
Tor Arne Vestbø 2023-05-04 14:22:45 +02:00
parent 760f99bfa8
commit 920bcc0946

View File

@ -37,7 +37,10 @@ public:
bool isDebugLibrary() const
{
return binaryName.endsWith(QStringLiteral("_debug"));
if (isDylib)
return binaryName.contains(QStringLiteral("_debug."));
else
return binaryName.endsWith(QStringLiteral("_debug"));
}
};