diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2023-11-22 16:56:16 +0100 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2023-11-23 09:00:41 +0000 |
commit | 7867c6aaa375e6c7ff3affb67dc6af56df1ecdf4 (patch) | |
tree | 2495e4f90bb394bf9abd3a9b46461dfceeb5570b | |
parent | e1b7ac72f195bc1c1afb8035559b4f6f862c4574 (diff) |
MSVC support: Prevent cl.exe from crashing
... when retrieving the built-in defines.
Fixes: QBS-1743
Change-Id: I7c2f49cdf90eb10c24ea8e54b2510c672c3d6749
Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
-rw-r--r-- | src/lib/corelib/tools/msvcinfo.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/corelib/tools/msvcinfo.cpp b/src/lib/corelib/tools/msvcinfo.cpp index 973284b2b..77b83023a 100644 --- a/src/lib/corelib/tools/msvcinfo.cpp +++ b/src/lib/corelib/tools/msvcinfo.cpp @@ -176,6 +176,7 @@ static QVariantMap getMsvcDefines(const QString &compilerFilePath, << qEnvironmentVariable("COMSPEC") << QStringLiteral("/c") << languageSwitch + << QStringLiteral("/Zs") << QStringLiteral("NUL"), compilerEnv, true, commands)).split(QLatin1Char('\n')); |