Skip to content

Commit 5057503

Browse files
author
Andrey Borisovich
committed
Set SOF C++ language standard to C++17 for Zephyr builds
Recent changes to Zephyr header files written in C++ use templates and features provided by the C++14 standard. Meteorlake board that is built with Zephyr has some C++ code that uses those headers. We upgrade straight to C++17 since it is newest standard currently supported by xt-clang toolchain. This change does not affect any other boards since the do not have any C++ code as the time of writing. Signed-off-by: Andrey Borisovich <andrey.borisovich@intel.com>
1 parent 8a8b54a commit 5057503

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

zephyr/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ endif()
101101

102102
# SOF module init
103103
zephyr_library_named(modules_sof)
104+
105+
# Zephyr C++ code requires 14 or newer standard
106+
set_property(TARGET modules_sof PROPERTY CXX_STANDARD 17)
107+
104108
zephyr_include_directories(
105109
include
106110
)

0 commit comments

Comments
 (0)