Commit a23d855
Two pre-existing acceptance gates failed for the same reason: under each
orchestrator's Release profile (`-flto -Os` + `--gc-sections`) the test
was probing for a symbol the linker had inlined and stripped. Both fixes
broaden the probe to also accept an LTO-stable signal that proves the
intended code was actually linked.
stm32f103c8 SPI auto-discovery (#223):
- crates/fbuild-build/tests/stm32_acceptance.rs:99 — accept either the
mangled `_ZN8SPIClass*` symbol (non-LTO builds) OR a `PinMap_SPI_*`
global from `Arduino_Core_STM32/libraries/SPI/src/utility/spi_com.c`
(LTO builds; address-taken `const` array survives `--gc-sections`).
Either signal proves the SPI library was auto-discovered, compiled,
and linked. Orchestrator wiring is unchanged — already correct since
#214 (commit 86bb2d9).
teensyLC blink (acceptance-205 baseline failure since 2026-04-25):
- crates/fbuild-build/tests/teensylc_acceptance.rs:88 — accept the
unmangled `setup`/`loop`, the mangled `_Z5setupv`/`_Z4loopv`, OR the
sketch's `Serial.println` literal `"Teensy LC Test - LED Blink"` in
the firmware bytes. Strings in `.rodata` survive `--gc-sections`
because their address is taken by the println call.
- crates/fbuild-build/tests/teensylc_acceptance.rs:114 — use
`result.compile_database_path` from the BuildResult instead of
walking `params.build_dir` (which the pipeline ignores: it roots its
cache at `<project_dir>/.fbuild/build/<env>/<profile>/`).
Verified locally on Windows host (toolchain + packages cached): both
acceptance tests pass under Release LTO.
Closes #223
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent a04bb2a commit a23d855
2 files changed
Lines changed: 68 additions & 43 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
20 | 28 | | |
21 | 29 | | |
22 | 30 | | |
| |||
84 | 92 | | |
85 | 93 | | |
86 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
87 | 110 | | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
92 | 117 | | |
93 | 118 | | |
94 | 119 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
88 | 102 | | |
89 | 103 | | |
90 | 104 | | |
91 | 105 | | |
92 | | - | |
| 106 | + | |
93 | 107 | | |
94 | | - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
95 | 111 | | |
96 | 112 | | |
97 | 113 | | |
98 | 114 | | |
99 | | - | |
100 | | - | |
101 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
102 | 125 | | |
103 | 126 | | |
104 | 127 | | |
| |||
122 | 145 | | |
123 | 146 | | |
124 | 147 | | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
0 commit comments