From 920bcc09466513375745d6e2250610d62fb98ff1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Thu, 4 May 2023 14:22:45 +0200 Subject: [PATCH] macdeployqt: Detect debug dylibs, not just debug frameworks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/tools/macdeployqt/shared/shared.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/tools/macdeployqt/shared/shared.h b/src/tools/macdeployqt/shared/shared.h index 66c935539c..33384e868a 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")); } };