diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2022-10-19 12:22:59 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2022-10-19 17:02:36 +0200 |
commit | f5de333192ada282189713c43fff4a89a000273e (patch) | |
tree | 9d3d53159132e2b87f699f6a2007975d75684afe /cmake | |
parent | f037e85dc29f69ae747c3f446751ae39b70f9ff1 (diff) |
MSVC: Disable conformance check that breaks with default WinSDK
The default Windows SDK installed for VC++ 2022 is 10.0.19041, and still
has the issue described here, breaking builds if -Zcpreprocessor is set:
https://developercommunity.visualstudio.com/t/stdc17-generates-warning-compiling-windowsh/1249671
The issue might be fixed in SDK version 2104 (10.0.20348.0), but until
that is the default SDK when installing the compiler, turn that
conformance check off again.
Partially reverts commit 8cb832090a8a0e7226904561f97c6de954d752ed
Change-Id: Ib22f8d196b978274ce31be727826b902e79aaa99
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/QtInternalTargets.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/QtInternalTargets.cmake b/cmake/QtInternalTargets.cmake index 363d510fd1..21bd645639 100644 --- a/cmake/QtInternalTargets.cmake +++ b/cmake/QtInternalTargets.cmake @@ -249,7 +249,7 @@ if (MSVC) target_compile_options(PlatformCommonInternal INTERFACE -Zc:externConstexpr #-Zc:lambda # Buggy. TODO: Enable again when stable enough. - -Zc:preprocessor + #-Zc:preprocessor # breaks build due to bug in default Windows SDK 10.0.19041 ) endif() |