-
Notifications
You must be signed in to change notification settings - Fork 1
fix(ldf): root framework selection at sketch #1097
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
ce94297
docs: add plain-language reporting lesson
zackees 53cf328
fix(ldf): root framework selection at sketch
zackees 6bebd27
merge: update LDF fix from main
zackees e72df58
feat(ldf): evaluate active include branches
zackees b087e0a
ci: rerun LDF selection checks
zackees dd30c64
fix(bench): include LDF defines in cache inputs
zackees a42c271
style: format LDF resolver
zackees 8abc421
style: align LDF resolver with pinned rustfmt
zackees 9779e86
fix(daemon): await USB profile initialization
zackees e4a9bf8
fix(config): canonicalize board profile lookup
zackees 6e1e63f
fix(ldf): align stm32 resolver defines
zackees File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🔴 Critical | 🏗️ Heavy lift
Local library
.cppdependencies are silently ignored (and logic is duplicated).Both files duplicate
collect_project_seeds, which completely skipslib/roots (is_library_root). By entirely excluding thelib/directory, translation units (e.g.,.cppfiles) inside local libraries are dropped from the walker seeds. If an active local library includes a framework header like<SPI.h>in its.cppfile but not in its.hfile, the framework library will never be evaluated or selected by the walker, resulting in linker errors (undefined references).Additionally, the path and seed resolution logic is exactly duplicated between the build engine and the CLI.
crates/fbuild-build-engine/src/framework_libs.rs#L398-L412: Fix the LDF logic to ensure.cppfiles of active local libraries are correctly scanned for dependencies (e.g., by seeding dynamically from discovered local libraries, or avoiding wholesale pruning oflib/translation units), and extract these path/seed helpers into a shared, public module.crates/fbuild-cli/src/lib_select.rs#L317-L337: Import the shared, corrected helpers from the build engine instead of duplicating the logic.📍 Affects 2 files
crates/fbuild-build-engine/src/framework_libs.rs#L398-L412(this comment)crates/fbuild-cli/src/lib_select.rs#L317-L337🤖 Prompt for AI Agents