diff options
author | Tor Arne Vestbø <[email protected]> | 2023-05-04 14:22:45 +0200 |
---|---|---|
committer | Tor Arne Vestbø <[email protected]> | 2023-05-05 19:05:08 +0200 |
commit | 920bcc09466513375745d6e2250610d62fb98ff1 (patch) | |
tree | 69cecf04f46394946419b0deb9e457cce90960a7 | |
parent | 760f99bfa8bc964fe22bae5e4602e41208ab903c (diff) |
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 <[email protected]>
-rw-r--r-- | src/tools/macdeployqt/shared/shared.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tools/macdeployqt/shared/shared.h b/src/tools/macdeployqt/shared/shared.h index 66c935539c7..33384e868a1 100644 --- a/src/tools/macdeployqt/shared/shared.h +++ b/src/tools/macdeployqt/shared/shared.h @@ -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")); } }; |