Skip to content

Commit 152dd06

Browse files
authored
Upgrade to C++23 (#507)
Use the same CXX standard as Drake itself uses.
1 parent 1f483d2 commit 152dd06

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

drake_bazel_download/.bazelrc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ build --strip=never
1111
build --test_output=errors
1212
build --test_summary=terse
1313

14-
# Use C++20.
15-
build --cxxopt=-std=c++20
16-
build --host_cxxopt=-std=c++20
14+
# Use C++23.
15+
build --cxxopt=-std=c++23
16+
build --host_cxxopt=-std=c++23
1717

1818
# https://github.com/bazelbuild/bazel/issues/1164
1919
build --action_env=CCACHE_DISABLE=1

drake_bazel_external/.bazelrc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ build --strip=never
1111
build --test_output=errors
1212
build --test_summary=terse
1313

14-
# Use C++20.
15-
build --cxxopt=-std=c++20
16-
build --host_cxxopt=-std=c++20
14+
# Use C++23.
15+
build --cxxopt=-std=c++23
16+
build --host_cxxopt=-std=c++23
1717

1818
# Suppress warnings from module externals.
1919
build --per_file_copt=external/.*@-w

drake_cmake_installed/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ get_filename_component(DRAKE_PYTHONPATH
2626
)
2727

2828
set(CMAKE_CXX_EXTENSIONS OFF)
29-
set(CMAKE_CXX_STANDARD 20)
29+
set(CMAKE_CXX_STANDARD 23)
3030
set(CMAKE_CXX_STANDARD_REQUIRED ON)
3131
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
3232

drake_cmake_installed_apt/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ project(drake_cmake_installed_apt)
1111
include(CTest)
1212

1313
set(CMAKE_CXX_EXTENSIONS OFF)
14-
set(CMAKE_CXX_STANDARD 20)
14+
set(CMAKE_CXX_STANDARD 23)
1515
set(CMAKE_CXX_STANDARD_REQUIRED ON)
1616
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
1717

0 commit comments

Comments
 (0)