summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTor Arne Vestbø <[email protected]>2023-05-04 14:22:45 +0200
committerTor Arne Vestbø <[email protected]>2023-05-05 19:05:08 +0200
commit920bcc09466513375745d6e2250610d62fb98ff1 (patch)
tree69cecf04f46394946419b0deb9e457cce90960a7
parent760f99bfa8bc964fe22bae5e4602e41208ab903c (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.h5
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"));
}
};