Commit dc6eb34
fix(toolchain): an installed msvc toolset did not appear in
The enumeration asked `toolchain_frontend(root / "bin", pkg)`, got nothing,
and `continue`d. cl.exe is four levels deeper -- under
VC/Tools/MSVC/<ver>/bin/Host<h>/<arch>/ -- so every msvc payload installed
correctly and was then invisible.
Three places have to know that layout. Install and build knew; the listing
did not, which is what a third inline copy of a rule tends to produce. They
now share `payload_frontend(payloadRoot, pkg, family)`, which delegates to
`msvc::installation_at()` for msvc and to the bin/-shaped lookup for
everything else -- so the three cannot disagree about where a payload keeps
its compiler.
Found by running the RELEASED 2026.8.16.1 binary against a payload-shaped
fixture, not by a test: the unit test I had written pinned
`identify_xim_payload("msvc")`, which was already correct. The identity
mapping and the enumeration are different questions, and only one of them
was being asked.
prepare.cppm's default-toolchain path also resolves through payload->binDir
and is deliberately left alone: the Windows first-run pin is llvm@20.1.7, so
that site is unreachable for msvc.
Regression test asserts both directions -- payload_frontend finds it, and the
`root/bin` question still answers nothing, which is what makes it the wrong
question rather than a broken implementation.
Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>toolchain list (#436)1 parent 26b26ec commit dc6eb34
4 files changed
Lines changed: 64 additions & 1 deletion
Whitespace-only changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
288 | | - | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
289 | 293 | | |
290 | 294 | | |
291 | 295 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
109 | 126 | | |
110 | 127 | | |
111 | 128 | | |
| |||
357 | 374 | | |
358 | 375 | | |
359 | 376 | | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
360 | 391 | | |
361 | 392 | | |
362 | 393 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
258 | 286 | | |
259 | 287 | | |
260 | 288 | | |
| |||
0 commit comments