@@ -128,7 +128,7 @@ function(__init_project_configuration)
128128 if (IDF_TARGET STREQUAL "linux" )
129129 # Building for Linux target, fall back to an older version of the standard
130130 # if the preferred one is not supported by the compiler.
131- set (preferred_c_versions gnu17 gnu11 gnu99)
131+ set (preferred_c_versions gnu23 gnu17 gnu11 gnu99)
132132 set (ver_found FALSE )
133133 foreach (c_version ${preferred_c_versions} )
134134 check_c_compiler_flag("-std=${c_version} " ver_${c_version} _supported)
@@ -143,7 +143,7 @@ function(__init_project_configuration)
143143 "${preferred_c_versions} . Please upgrade the host compiler." )
144144 endif ()
145145
146- set (preferred_cxx_versions gnu++2b gnu++20 gnu++2a gnu++17 gnu++14)
146+ set (preferred_cxx_versions gnu++26 gnu++ 2b gnu++20 gnu++2a gnu++17 gnu++14)
147147 set (ver_found FALSE )
148148 foreach (cxx_version ${preferred_cxx_versions} )
149149 check_cxx_compiler_flag("-std=${cxx_version} " ver_${cxx_version} _supported)
@@ -167,8 +167,8 @@ function(__init_project_configuration)
167167 # function, which must be called after project().
168168 # Please update docs/en/api-guides/c.rst, docs/en/api-guides/cplusplus.rst and
169169 # tools/test_apps/system/cxx_build_test/main/test_cxx_standard.cpp when changing this.
170- list (APPEND c_compile_options "-std=gnu17 " )
171- list (APPEND cxx_compile_options "-std=gnu++2b " )
170+ list (APPEND c_compile_options "-std=gnu23 " )
171+ list (APPEND cxx_compile_options "-std=gnu++26 " )
172172 endif ()
173173
174174 if (CONFIG_COMPILER_OPTIMIZATION_SIZE)
@@ -472,13 +472,10 @@ function(__init_project_configuration)
472472 get_filename_component (compiler_sysroot "${compiler_sysroot} /.." REALPATH)
473473 list (APPEND compile_options "-fdebug-prefix-map=${compiler_sysroot} =/TOOLCHAIN" )
474474 string (APPEND gdbinit_file_lines "set substitute-path /TOOLCHAIN ${compiler_sysroot} \n " )
475-
476- file (WRITE "${build_dir} /prefix_map_gdbinit" "${gdbinit_file_lines} " ) # TODO IDF-11667
477- idf_build_set_property(DEBUG_PREFIX_MAP_GDBINIT "${gdbinit_path} " )
478475 else ()
479476 set (gdbinit_file_lines "# There is no prefix map defined for the project.\n " )
480477 endif ()
481- # Write prefix_map_gdbinit file even it is empty.
478+ # Write the prefix_map file even if it is empty.
482479 file (MAKE_DIRECTORY ${gdbinit_dir} )
483480 file (WRITE "${gdbinit_path} " "${gdbinit_file_lines} " )
484481
@@ -571,6 +568,10 @@ macro(idf_project_init)
571568 # Ensure this function is executed only once throughout the entire
572569 # project.
573570
571+ # Warn about the use of deprecated variables.
572+ deprecate_variable(COMPONENTS)
573+ deprecate_variable(EXCLUDE_COMPONENTS)
574+
574575 # Set PROJECT_NAME build property
575576 __init_project_name()
576577
0 commit comments