From 5b159cb7af48c8329bc1dcc2675c6640e878c7ad Mon Sep 17 00:00:00 2001 From: Paul Barbot Date: Tue, 27 May 2025 15:11:34 +0200 Subject: [PATCH 2/2] macdeployqt: cache otool -L output --- qtbase/src/tools/macdeployqt/shared/shared.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/qtbase/src/tools/macdeployqt/shared/shared.cpp b/qtbase/src/tools/macdeployqt/shared/shared.cpp index cfb9a5c207f..75d6270f5a0 100644 --- a/qtbase/src/tools/macdeployqt/shared/shared.cpp +++ b/qtbase/src/tools/macdeployqt/shared/shared.cpp @@ -145,6 +145,12 @@ void patch_debugInInfoPlist(const QString &infoPlistPath) OtoolInfo findDependencyInfo(const QString &binaryPath) { + static QHash cache; + auto it = cache.find(binaryPath); + if (it != cache.end()) { + return *it; + } + OtoolInfo info; info.binaryPath = binaryPath; @@ -204,6 +210,7 @@ OtoolInfo findDependencyInfo(const QString &binaryPath) } } + cache.insert(binaryPath, info); return info; } -- 2.39.5 (Apple Git-154)