From 32eacbf0e3ce58b9a917e7a79284287aa6d8e39a Mon Sep 17 00:00:00 2001 From: Frantisek Hrbata Date: Wed, 18 Mar 2026 11:33:41 +0100 Subject: [PATCH] fix(cmakev2/project): initialize idf_path for macro prefix map The idf_path variable was used in -fmacro-prefix-map and -fdebug-prefix-map flags but never read from the IDF_PATH build property, resulting in an empty substitution. This caused full filesystem paths to leak into .rodata instead of being mapped to /IDF. Signed-off-by: Frantisek Hrbata --- tools/cmakev2/project.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/cmakev2/project.cmake b/tools/cmakev2/project.cmake index dddfaafa956..e99a46867ef 100644 --- a/tools/cmakev2/project.cmake +++ b/tools/cmakev2/project.cmake @@ -84,6 +84,7 @@ function(__init_project_configuration) set(link_options) idf_build_get_property(idf_ver IDF_VER) + idf_build_get_property(idf_path IDF_PATH) idf_build_get_property(idf_target IDF_TARGET) idf_build_get_property(component_interfaces COMPONENT_INTERFACES) idf_build_get_property(build_dir BUILD_DIR)