Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ci/kokoro/windows/builds/cmake.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ $cmake_args=@(
"-DVCPKG_OVERLAY_TRIPLETS=${project_root}/ci/kokoro/windows/triplets",
"-DCMAKE_C_COMPILER=cl.exe",
"-DCMAKE_CXX_COMPILER=cl.exe",
"-DCMAKE_CXX_STANDARD=17",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The repository style guide indicates that C++14 is the minimum supported standard. To ensure the codebase remains compatible with C++14, it's preferable to enforce this standard in the CI builds. Setting it to C++17 could allow features that are not C++14 compatible to be merged.

    "-DCMAKE_CXX_STANDARD=14",
References
  1. The repository style guide (line 6) states that C++14 is the minimum supported C++ standard version. This change should align with that by setting the standard to 14, not 17, to enforce compatibility. (link)

"-DGOOGLE_CLOUD_CPP_ENABLE_WERROR=ON",
"-DGOOGLE_CLOUD_CPP_ENABLE_CTYPE_CORD_WORKAROUND=ON",
"-DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded$<$<CONFIG:Debug>:Debug>",
Expand Down
3 changes: 2 additions & 1 deletion ci/kokoro/windows/builds/quickstart-cmake.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ $cmake_args=@(
"-DCMAKE_TOOLCHAIN_FILE=`"${vcpkg_root}/scripts/buildsystems/vcpkg.cmake`"",
"-DCMAKE_BUILD_TYPE=${env:CONFIG}",
"-DVCPKG_TARGET_TRIPLET=${env:VCPKG_TRIPLET}",
"-DCMAKE_CXX_COMPILER=cl.exe"
"-DCMAKE_CXX_COMPILER=cl.exe",
"-DCMAKE_CXX_STANDARD=17"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The repository style guide indicates that C++14 is the minimum supported standard. To ensure the codebase remains compatible with C++14, it's preferable to enforce this standard in the CI builds. Setting it to C++17 could allow features that are not C++14 compatible to be merged.

    "-DCMAKE_CXX_STANDARD=14"
References
  1. The repository style guide (line 6) states that C++14 is the minimum supported C++ standard version. This change should align with that by setting the standard to 14, not 17, to enforce compatibility. (link)

)

Write-Host "$(Get-Date -Format o) Configuring CMake with $cmake_args"
Expand Down