Pin the scalar shape for the honored board_build options; note the dispatch coupling

The schema permits the list form, so the routing now stores the last
value (like a later platformio.ini line) and the generator always sees a
scalar. The using_native_toolchain docstring points at write_cpp_file's
dispatch so NATIVE_TOOLCHAINS membership and the project-writing branch
flip together.
This commit is contained in:
J. Nick Koston
2026-08-22 13:15:47 -05:00
parent 315f41e884
commit 2dac9112be
3 changed files with 9 additions and 4 deletions
+3 -1
View File
@@ -1408,7 +1408,9 @@ async def test_add_platformio_options_native_arduino(
await config._add_platformio_options(
{
"board_build.f_cpu": "160000000L",
"board_build.ldscript": "eagle.flash.4m2m.ld",
# The schema also permits the list form; the last value wins
# and reaches the generator as a scalar
"board_build.ldscript": ["eagle.flash.2m.ld", "eagle.flash.4m2m.ld"],
"board_build.filesystem": "littlefs",
"upload_speed": "115200",
}