mirror of
https://github.com/zeux/pugixml.git
synced 2024-12-26 12:41:06 +08:00
Enable C++17 standard in AppVeyor tests
To avoid increasing the build matrix we enable this unconditionally for VS2019 and VS2022 to be able to test std::string_view. Note that we already test VS2022 without this flag on GHA so this should catch any regressions.
This commit is contained in:
parent
d5f14adb3c
commit
af6cbeb170
@ -37,6 +37,8 @@ foreach ($vs in $args)
|
||||
|
||||
if (! $?) { throw "Error setting up VS$vs $arch" }
|
||||
|
||||
$cxx = if ($vs -ge 19) { "/std:c++17" } else { "" }
|
||||
|
||||
foreach ($defines in "standard", "PUGIXML_WCHAR_MODE", "PUGIXML_COMPACT")
|
||||
{
|
||||
$target = "tests_vs${vs}_${arch}_${defines}"
|
||||
@ -45,7 +47,7 @@ foreach ($vs in $args)
|
||||
Add-AppveyorTest $target -Outcome Running
|
||||
|
||||
Write-Output "# Building $target.exe"
|
||||
& cmd /c "cl.exe /MP /Fe$target.exe /EHsc /W4 /WX $deflist $sources 2>&1" | Tee-Object -Variable buildOutput
|
||||
& cmd /c "cl.exe /MP /Fe$target.exe /EHsc /W4 /WX $cxx $deflist $sources 2>&1" | Tee-Object -Variable buildOutput
|
||||
|
||||
if ($?)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user