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 8cb832090a

Change-Id: Ib22f8d196b978274ce31be727826b902e79aaa99
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
This commit is contained in:
Volker Hilsheimer 2022-10-19 12:22:59 +02:00
parent f037e85dc2
commit f5de333192

View File

@ -249,7 +249,7 @@ if (MSVC)
target_compile_options(PlatformCommonInternal INTERFACE target_compile_options(PlatformCommonInternal INTERFACE
-Zc:externConstexpr -Zc:externConstexpr
#-Zc:lambda # Buggy. TODO: Enable again when stable enough. #-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() endif()