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
feat(ldf): evaluate active preprocessor branches during library selection #1098
After #1097 changes framework library selection to seed only from sketch translation units, FastLED Teensy Blink no longer selects Audio, SD, SdFat, or SerialFlash. However fbuild lib-select --explain still selects DmxSimple, OctoWS2811, and SoftwareSerial because fbuild-header-scan deliberately traverses both sides of every conditional.
Implementation is in #1099 (stacked on #1097). It evaluates active include branches with target compiler defines and sketch-local active defines; the cache key includes the compiler define set.\n\nValidated locally with focused scanner/resolver/cache tests, strict clippy, and the live FastLED Teensy selector. The live selector now reaches 369 headers and selects zero framework libraries; Audio, SD, SdFat, and SerialFlash are absent.
Activity
zackees commentedon Jul 16, 2026
Implementation is in #1099 (stacked on #1097). It evaluates active include branches with target compiler defines and sketch-local active defines; the cache key includes the compiler define set.\n\nValidated locally with focused scanner/resolver/cache tests, strict clippy, and the live FastLED Teensy selector. The live selector now reaches 369 headers and selects zero framework libraries; Audio, SD, SdFat, and SerialFlash are absent.
zackees commentedon Jul 21, 2026
Resolved on main by PR #1097 (its squash merge explicitly includes the active-preprocessor implementation from stacked PR #1099).\n\nValidation on current main:\n- bash ./test -p fbuild-header-scan (53 passed)\n- bash ./test -p fbuild-library-select (19 unit + 2 integration passed)\n- soldr cargo check -p fbuild-header-scan -p fbuild-library-select\n- soldr cargo run -p fbuild-cli -- lib-select C:\Users\niteris\dev\fastled -e teensy41 --explain: selected libraries (0), unresolved includes (0). This confirms Blink/FastLED's inactive optional branches no longer pull DmxSimple, OctoWS2811, SoftwareSerial, Audio, SD, SdFat, or SerialFlash.