mirror of
https://github.com/espressif/esp-idf.git
synced 2026-09-22 13:01:16 +03:00
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 <frantisek.hrbata@espressif.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user