Update vcpkg-tool build for VS2022. (#398)
* Update vcpkg-tool build for VS2022. * Disable 6553.
This commit is contained in:
Родитель
64df030485
Коммит
e8be5aa966
|
@ -78,7 +78,7 @@ jobs:
|
|||
- job: windows
|
||||
displayName: 'Windows'
|
||||
pool:
|
||||
vmImage: 'windows-latest'
|
||||
vmImage: 'windows-2022'
|
||||
variables:
|
||||
- name: DiffFile
|
||||
value: $(Build.ArtifactStagingDirectory)\format.diff
|
||||
|
@ -98,7 +98,7 @@ jobs:
|
|||
displayName: "Build vcpkg with CMake"
|
||||
inputs:
|
||||
script: |
|
||||
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" -arch=x86 -host_arch=x86
|
||||
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat" -arch=x86 -host_arch=x86
|
||||
rmdir /s /q build.x86.debug > nul 2> nul
|
||||
cmake.exe -G Ninja -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=ON -DVCPKG_DEVELOPMENT_WARNINGS=ON -DVCPKG_WARNINGS_AS_ERRORS=ON -DVCPKG_BUILD_FUZZING=ON -DVCPKG_BUILD_TLS12_DOWNLOADER=ON -B build.x86.debug
|
||||
ninja.exe -C build.x86.debug
|
||||
|
|
|
@ -48,7 +48,9 @@ function(vcpkg_target_add_warning_options TARGET)
|
|||
-Wno-missing-field-initializers
|
||||
)
|
||||
else()
|
||||
target_compile_options(${TARGET} PRIVATE -analyze -analyze:stacksize 39000)
|
||||
# -wd6553 is to workaround a violation in the Windows SDK
|
||||
# c:\program files (x86)\windows kits\10\include\10.0.22000.0\um\winreg.h(780) : warning C6553: The annotation for function 'RegOpenKeyExW' on _Param_(3) does not apply to a value type.
|
||||
target_compile_options(${TARGET} PRIVATE -analyze -analyze:stacksize 39000 -wd6553)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче