diff --git a/misc/bazel/internal/zipmerge/.clang-format b/misc/bazel/internal/zipmerge/.clang-format index ca0a3afd986d..8ad9bffadd95 100644 --- a/misc/bazel/internal/zipmerge/.clang-format +++ b/misc/bazel/internal/zipmerge/.clang-format @@ -4,4 +4,4 @@ IndentWidth: 2 SortIncludes: false AllowShortIfStatementsOnASingleLine: WithoutElse AlwaysBreakBeforeMultilineStrings: false -Standard: c++20 +Standard: c++23 diff --git a/misc/bazel/internal/zipmerge/BUILD.bazel b/misc/bazel/internal/zipmerge/BUILD.bazel index 4b2723d6c64a..4a78b108a88b 100644 --- a/misc/bazel/internal/zipmerge/BUILD.bazel +++ b/misc/bazel/internal/zipmerge/BUILD.bazel @@ -6,7 +6,7 @@ cc_library( "zipmerge.cpp", ], hdrs = ["zipmerge.h"], - copts = ["-std=c++20"], + copts = ["-std=c++23"], ) cc_binary( @@ -14,7 +14,7 @@ cc_binary( srcs = [ "zipmerge_main.cpp", ], - copts = ["-std=c++20"], + copts = ["-std=c++23"], visibility = ["//visibility:public"], deps = [ ":lib", @@ -25,7 +25,7 @@ cc_test( name = "test", size = "small", srcs = ["zipmerge_test.cpp"], - copts = ["-std=c++20"], + copts = ["-std=c++23"], data = glob(["test-files/*"]), linkstatic = True, # required to build the test in the internal repo deps = [ diff --git a/swift/.clang-format b/swift/.clang-format index ca0a3afd986d..8ad9bffadd95 100644 --- a/swift/.clang-format +++ b/swift/.clang-format @@ -4,4 +4,4 @@ IndentWidth: 2 SortIncludes: false AllowShortIfStatementsOnASingleLine: WithoutElse AlwaysBreakBeforeMultilineStrings: false -Standard: c++20 +Standard: c++23 diff --git a/swift/CMakeLists.txt b/swift/CMakeLists.txt index 46bcd32db32d..0dc07e9f7bc9 100644 --- a/swift/CMakeLists.txt +++ b/swift/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.21) -set(CMAKE_CXX_STANDARD 20) +set(CMAKE_CXX_STANDARD 23) set(CMAKE_CXX_EXTENSIONS OFF) set(CMAKE_C_COMPILER clang) diff --git a/swift/rules.bzl b/swift/rules.bzl index d479f6bff112..b251615e16d3 100644 --- a/swift/rules.bzl +++ b/swift/rules.bzl @@ -14,7 +14,7 @@ def _transition_impl(settings, attr): "x86_64", ], "//command_line_option:cxxopt": [ - "-std=c++20", + "-std=c++23", # we currently cannot built the swift extractor for ARM "-arch", "x86_64", @@ -30,14 +30,14 @@ def _transition_impl(settings, attr): "-fno-rtti", ], "//command_line_option:cxxopt": [ - "-std=c++20", + "-std=c++23", ], "//command_line_option:linkopt": [], }, "windows": { "//command_line_option:copt": [], "//command_line_option:cxxopt": [ - "/std:c++20", + "/std:c++23", "--cxxopt=/Zc:preprocessor", ], "//command_line_option:linkopt": [],