diff options
Diffstat (limited to 'pw_toolchain/host_gcc/toolchain.cmake')
-rw-r--r-- | pw_toolchain/host_gcc/toolchain.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pw_toolchain/host_gcc/toolchain.cmake b/pw_toolchain/host_gcc/toolchain.cmake index ed011e21c..019c3ae95 100644 --- a/pw_toolchain/host_gcc/toolchain.cmake +++ b/pw_toolchain/host_gcc/toolchain.cmake @@ -29,6 +29,8 @@ include($ENV{PW_ROOT}/pw_trace/backend.cmake) set(CMAKE_C_COMPILER gcc) set(CMAKE_CXX_COMPILER g++) +pw_add_global_compile_options(-std=c++20 LANGUAGES CXX) + # Configure backend for assert facade. pw_set_backend(pw_assert.check pw_assert.print_and_abort_check_backend) pw_set_backend(pw_assert.assert pw_assert.print_and_abort_assert_backend) |