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 16:59:12 +0000 |
commit | f45431df32f93059f869daa171e6953bfc26b35a (patch) | |
tree | 431f00c63021d01a26815dbee7d73dc5e74d301c | |
parent | 84e2d7fd52276a867a26a4be98144611fc8b6e5e (diff) | |
download | qttools-f45431df32f93059f869daa171e6953bfc26b35a.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 15ff08430..d33d9d2af 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")); } }; |