From 90d3ee7d0bf6ec314ff3463ddc7cd11f0bd705b5 Mon Sep 17 00:00:00 2001 From: Paul Barbot Date: Thu, 22 May 2025 16:36:47 +0200 Subject: [PATCH 1/2] macdeploytool: Skip install_name_tool call when libraries name are the same Avoid a lot of calls to install_name_tool that are no-op and that can be skipped for faster deploy. --- qtbase/src/tools/macdeployqt/shared/shared.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qtbase/src/tools/macdeployqt/shared/shared.cpp b/qtbase/src/tools/macdeployqt/shared/shared.cpp index 2ba439bc611..cfb9a5c207f 100644 --- a/qtbase/src/tools/macdeployqt/shared/shared.cpp +++ b/qtbase/src/tools/macdeployqt/shared/shared.cpp @@ -903,6 +903,9 @@ void deployRPaths(const QString &bundlePath, const QList &rpaths, const void changeInstallName(const QString &oldName, const QString &newName, const QString &binaryPath) { + if (oldName == newName) + return; + LogDebug() << "Using install_name_tool:"; LogDebug() << " in" << binaryPath; LogDebug() << " change reference" << oldName; -- 2.39.5 (Apple Git-154)