[espidf] Stop perpetual reconfigure loop on native ESP-IDF builds (#16415)

This commit is contained in:
Jonathan Swoboda authored and GitHub committed 2026-05-13 23:19:30 -04:00
1 parent d2107e40c8
commit e593cb6efc
2 files changed
+19 -18

No files matched your search

+6 -1
View File
@@ -2509,7 +2509,12 @@ def _write_idf_component_yml():
stubs_dir = CORE.relative_build_path("component_stubs")
stubs_dir.mkdir(exist_ok=True)
for component_name in components_to_stub:
# Sort so the dict insertion order (and thus the generated
# src/idf_component.yml) is deterministic across runs; otherwise
# the manifest content shuffles every build, write_file_if_changed
# always writes, and ninja keeps triggering CMake re-runs on
# otherwise-cached rebuilds.
for component_name in sorted(components_to_stub):
# Create stub directory with minimal CMakeLists.txt
stub_path = stubs_dir / _idf_component_stub_name(component_name)
stub_path.mkdir(exist_ok=True)