diff options
author | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2015-06-08 11:59:09 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2015-06-08 10:12:18 +0000 |
commit | 6e0cb96b10a6865a9f881cf0b1013cfa024fcd79 (patch) | |
tree | 68f5365a621414477f7398b75b9aa764cf0d74fe | |
parent | 48b5cb2e682fd58e60b5650366c0291020e8b264 (diff) | |
download | qttools-6e0cb96b10a6865a9f881cf0b1013cfa024fcd79.tar.gz |
windeployqt: Print warning when MinGW runtime cannot be found.
Task-number: QTBUG-46458
Change-Id: I102eb6b902e9f59e7abacae611b5ad32dbe64eeb
Reviewed-by: Oliver Wolff <oliver.wolff@theqtcompany.com>
-rw-r--r-- | src/windeployqt/main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/windeployqt/main.cpp b/src/windeployqt/main.cpp index a993765d7..7f9f6c7f0 100644 --- a/src/windeployqt/main.cpp +++ b/src/windeployqt/main.cpp @@ -933,8 +933,10 @@ static QStringList compilerRunTimeLibs(Platform platform, unsigned wordSize) case WindowsMinGW: { // MinGW: Add runtime libraries static const char *minGwRuntimes[] = {"*gcc_", "*stdc++", "*winpthread"}; const QString gcc = findInPath(QStringLiteral("g++.exe")); - if (gcc.isEmpty()) + if (gcc.isEmpty()) { + std::wcerr << "Warning: Cannot find GCC installation directory. g++.exe must be in the path.\n"; break; + } const QString binPath = QFileInfo(gcc).absolutePath(); QDir dir(binPath); QStringList filters; |