2022-11-27 09:42:12 +00:00
|
|
|
diff --git a/src/linguist/shared/runqttool.cpp b/src/linguist/shared/runqttool.cpp
|
|
|
|
index d355b9dc..94fef33f 100644
|
|
|
|
--- a/src/linguist/shared/runqttool.cpp
|
|
|
|
+++ b/src/linguist/shared/runqttool.cpp
|
|
|
|
@@ -20,9 +20,21 @@ class FMT {
|
|
|
|
Q_DECLARE_TR_FUNCTIONS(Linguist)
|
|
|
|
};
|
|
|
|
|
|
|
|
+static QString qtBasePath(QLibraryInfo::LibraryPath location)
|
|
|
|
+{
|
|
|
|
+ switch (location) {
|
|
|
|
+ case QLibraryInfo::BinariesPath:
|
2023-04-29 16:46:19 +00:00
|
|
|
+ return QLatin1String(NIX_OUTPUT_OUT) + QLatin1String("/bin");
|
2022-11-27 09:42:12 +00:00
|
|
|
+ case QLibraryInfo::LibraryExecutablesPath:
|
2023-04-29 16:46:19 +00:00
|
|
|
+ return QLatin1String(NIX_OUTPUT_OUT) + QLatin1String("/libexec");
|
2022-11-27 09:42:12 +00:00
|
|
|
+ default:
|
|
|
|
+ return QLibraryInfo::path(location);
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
static QString qtToolFilePath(const QString &toolName, QLibraryInfo::LibraryPath location)
|
|
|
|
{
|
|
|
|
- QString filePath = QLibraryInfo::path(location) + QLatin1Char('/') + toolName;
|
|
|
|
+ QString filePath = qtBasePath(location) + QLatin1Char('/') + toolName;
|
|
|
|
#ifdef Q_OS_WIN
|
|
|
|
filePath.append(QLatin1String(".exe"));
|
|
|
|
#endif
|