mirror of
https://github.com/espressif/esp-idf.git
synced 2026-07-14 15:03:03 +03:00
The esp-idf-configdep utility works as a compiler wrapper. It lets the compiler compile the app and checks whether -MF option was used to generate dependency files. If yes, it checks for sdkconfig.h dependency in those files. Target file depending on sdkconfig.h is then scanned for all CONFIG_* occurrences and the dependency file is altered so that the given target file is marked as "dirty" only if the config options it actually uses are changed. This ensures that after a configuration update, only affected files are rebuilt, reducing incremental build times. The compiler launcher mechanism is changed from RULE_LAUNCH_COMPILE (Makefile-only) to CMAKE_*_COMPILER_LAUNCHER (generator-agnostic), enabling launcher chaining (configdep -> ccache -> compiler). Made-with: Cursor