Skip to content
Open
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
2 changes: 1 addition & 1 deletion misc/bazel/internal/zipmerge/.clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ IndentWidth: 2
SortIncludes: false
AllowShortIfStatementsOnASingleLine: WithoutElse
AlwaysBreakBeforeMultilineStrings: false
Standard: c++20
Standard: c++23
6 changes: 3 additions & 3 deletions misc/bazel/internal/zipmerge/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ cc_library(
"zipmerge.cpp",
],
hdrs = ["zipmerge.h"],
copts = ["-std=c++20"],
copts = ["-std=c++23"],

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It'll inherit the flags we set internally, which will be c++23.

)

cc_binary(
name = "zipmerge",
srcs = [
"zipmerge_main.cpp",
],
copts = ["-std=c++20"],
copts = ["-std=c++23"],
visibility = ["//visibility:public"],
deps = [
":lib",
Expand All @@ -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 = [
Expand Down
2 changes: 1 addition & 1 deletion swift/.clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ IndentWidth: 2
SortIncludes: false
AllowShortIfStatementsOnASingleLine: WithoutElse
AlwaysBreakBeforeMultilineStrings: false
Standard: c++20
Standard: c++23
2 changes: 1 addition & 1 deletion swift/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions swift/rules.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Latest VS 2026 supports this, and that's what we use in our internal builds and tests.

"--cxxopt=/Zc:preprocessor",
],
"//command_line_option:linkopt": [],
Expand Down
Loading