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>
This commit is contained in:
parent
f037e85dc2
commit
f5de333192
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user