You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Adopt ensure_lib_deps() in all remaining non-ESP32 orchestrators #1292
PR #1291 (fixes #1276) added the ensure_lib_deps() helper to crates/fbuild-build-engine/src/pipeline/library.rs and wired it into the
AVR orchestrator. The helper downloads registry/remote lib_deps entries
before the compiler is created, so library include directories are available
during compilation and their archives are linked into the firmware.
What's left
Eleven orchestrators that use run_sequential_build_with_libs() still pass &[] as extra_link_inputs and never download lib_deps. Each needs
the same 3-step integration:
Read lib_deps / lib_ignore from config
Call pipeline::ensure_lib_deps() before creating the compiler (use a
temp compiler to get c/cxx flags)
Add the returned include dirs to the compiler and pass the archives as extra_link_inputs
The AVR integration in PR #1291 is the canonical example — see the diff at crates/fbuild-build-mcu/src/avr/orchestrator.rs. The pattern is mechanical:
build a temp compiler for flags, call ensure_lib_deps(), extend include_dirs, pass lib_archives to run_sequential_build_with_libs.
Already working
ESP32 — already calls ensure_libraries() directly (predates this PR)
Activity
refactor(build): extract resolve_lib_deps() to eliminate duplicated l…
refactor(build): extract resolve_lib_deps() to eliminate duplicated l…