summaryrefslogtreecommitdiffstats
path: root/src/windeployqt/main.cpp
diff options
context:
space:
mode:
authorOliver Wolff <oliver.wolff@qt.io>2021-01-07 07:07:24 +0100
committerOliver Wolff <oliver.wolff@qt.io>2021-01-07 12:19:20 +0100
commitbaf783991e36aafe6921a40043b414192fb523a2 (patch)
tree71ce073be298ba8efd4ec7cb75d9ec9bdb6f46e9 /src/windeployqt/main.cpp
parent19002292a73d502da9ab4da168b8509cda1d6908 (diff)
windeployqt: Restore default behavior for compiler runtime deployment
For MSVC desktop and MinGW desktop builds the compiler runtime should be deployed by default. This default was changed by mistake in 317c2b4af885f854a30235959565e0af8376d64f. Pick-to: 6.0 Change-Id: Ia403f5beb3092aa692584c77cd5f96393f79d456 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/windeployqt/main.cpp')
-rw-r--r--src/windeployqt/main.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/windeployqt/main.cpp b/src/windeployqt/main.cpp
index 4839c6392..f7741f4aa 100644
--- a/src/windeployqt/main.cpp
+++ b/src/windeployqt/main.cpp
@@ -479,9 +479,11 @@ static inline int parseArguments(const QStringList &arguments, QCommandLineParse
options->systemD3dCompiler = !parser->isSet(noSystemD3DCompilerOption);
options->quickImports = !parser->isSet(noQuickImportOption);
- if (parser->isSet(compilerRunTimeOption))
+ // default to deployment of compiler runtime for windows desktop configurations
+ if (options->platform == WindowsDesktopMinGW || options->platform == WindowsDesktopMsvc
+ || parser->isSet(compilerRunTimeOption))
options->compilerRunTime = true;
- else if (parser->isSet(noCompilerRunTimeOption))
+ if (parser->isSet(noCompilerRunTimeOption))
options->compilerRunTime = false;
if (options->compilerRunTime && options->platform != WindowsDesktopMinGW && options->platform != WindowsDesktopMsvc) {