mirror of
https://github.com/espressif/esp-idf
synced 2025-03-10 01:29:21 -04:00
Enable support for C++23 in esp-idf
This commit is contained in:
parent
af805df3cb
commit
a96f5bd5b0
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user