Commit d088072
fix(stm32): discover Arduino_Core_STM32 framework libraries (SPI, Wire, ...) (#203)
The STM32 orchestrator installs the STM32duino core but never walked
libraries/*/ to surface bundled libraries to sketches. Any sketch that
transitively included <SPI.h> (e.g. FastLED's STM32 fastspi path) failed
with "fatal error: SPI.h: No such file or directory" despite SPI living
right there in the cache.
Mirror PR #164's Teensy fix:
- Add a shared FrameworkLibrary model + discover_framework_libraries()
walker in fbuild-packages, used by both TeensyCores and Stm32Cores.
- Extract the #include-scanning / transitive-closure resolver out of the
Teensy orchestrator into crate::framework_libs so both platforms share
one code path.
- Wire Stm32Cores::get_framework_libraries() +
get_framework_library_include_dirs() into the STM32 orchestrator after
SrcWrapper so the resolver picks up SPI/Wire/EEPROM/... on demand and
their include dirs reach the sketch compile command.
Fixes #202
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent a5ed36a commit d088072
8 files changed
Lines changed: 661 additions & 528 deletions
File tree
- crates
- fbuild-build/src
- stm32
- teensy
- fbuild-packages/src/library
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
103 | 104 | | |
104 | 105 | | |
105 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
106 | 123 | | |
107 | 124 | | |
108 | 125 | | |
| |||
173 | 190 | | |
174 | 191 | | |
175 | 192 | | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
176 | 196 | | |
177 | 197 | | |
178 | 198 | | |
| |||
0 commit comments