icudt-debug-suffix.patch 962 B

12345678910111213
  1. diff --git a/src/windeployqt/main.cpp b/src/windeployqt/main.cpp
  2. index 4e480bb..e15f076 100644
  3. --- a/src/windeployqt/main.cpp
  4. +++ b/src/windeployqt/main.cpp
  5. @@ -1324,7 +1324,7 @@ static DeployResult deploy(const Options &options,
  6. const QString icuVersion = icuLibs.front().mid(index, numberExpression.matchedLength());
  7. if (optVerboseLevel > 1)
  8. std::wcout << "Adding ICU version " << icuVersion << '\n';
  9. - icuLibs.push_back(QStringLiteral("icudt") + icuVersion + QLatin1String(windowsSharedLibrarySuffix));
  10. + icuLibs.push_back(QStringLiteral("icudt") + (result.isDebug && platformHasDebugSuffix(options.platform) ? QStringLiteral("d") : QString()) + icuVersion + QLatin1String(windowsSharedLibrarySuffix));
  11. }
  12. for (const QString &icuLib : qAsConst(icuLibs)) {
  13. const QString icuPath = findInPath(icuLib);