diff options
author | Morten Johan Sørvig <morten.sorvig@qt.io> | 2021-03-03 13:17:29 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-09-09 17:14:11 +0000 |
commit | fc3c77e5467cefa07fd5a86352120c0888e825a9 (patch) | |
tree | 1f264547ea4c6b3e94ed8f01e42580e299d5c3a9 | |
parent | 49aa3caa9cfad52947e7bfe38c89e83354f5867f (diff) | |
download | qttools-fc3c77e5467cefa07fd5a86352120c0888e825a9.tar.gz |
macdeployqt: detect debug libs by using “_debug” suffix
Use endsWith() instead of contains(), which will not
give a false positive for internal usages of the “_debug”
string in the library name.
Task-number: QTBUG-90982
Change-Id: I22258ab2cc59e36d13fcdc078fcb2ad6381de102
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
(cherry picked from commit ac79993e7f0f4cca37aac113ebddfedc470e7153)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | src/macdeployqt/shared/shared.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/macdeployqt/shared/shared.h b/src/macdeployqt/shared/shared.h index 2ecf07f1b..66c1c1a63 100644 --- a/src/macdeployqt/shared/shared.h +++ b/src/macdeployqt/shared/shared.h @@ -62,7 +62,7 @@ public: bool isDebugLibrary() const { - return binaryName.contains(QLatin1String("_debug")); + return binaryName.endsWith(QStringLiteral("_debug")); } }; |