Enable support for C++23 in esp-idf

pull/11025/head
0xFEEDC0DE64 2023-03-20 17:01:40 +01:00
rodzic af805df3cb
commit a96f5bd5b0
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -129,7 +129,7 @@ function(__build_set_lang_version)
# Use latest supported versions.
# Please update docs/en/api-guides/cplusplus.rst when changing this.
set(c_std gnu17)
set(cxx_std gnu++20)
set(cxx_std gnu++23)
else()
enable_language(C CXX)
# Building for Linux target, fall back to an older version of the standard
@ -149,7 +149,7 @@ function(__build_set_lang_version)
"${preferred_c_versions}. Please upgrade the host compiler.")
endif()
set(preferred_cxx_versions gnu++20 gnu++2a gnu++17 gnu++14)
set(preferred_cxx_versions gnu++23 gnu++20 gnu++2a gnu++17 gnu++14)
set(ver_found FALSE)
foreach(cxx_version ${preferred_cxx_versions})
check_cxx_compiler_flag("-std=${cxx_version}" ver_${cxx_version}_supported)