Files
turso/licenses
Pekka Enberg 65a7ebf9f1 Merge 'sdk-kit: find rc.exe through the registered Windows SDK' from
On MSVC targets, the `turso_sdk_kit` build script looks for `rc.exe`
only in `PATH` and under `%ProgramFiles(x86)%\Windows Kits\10\bin`. If
the Windows SDK is installed anywhere else (mine is in `D:\Windows
Kits\10`), the build panics:

```
rc.exe was not found in PATH and Windows SDK bin directory C:\Program Files (x86)\Windows Kits\10\bin could not be read: The system cannot find the path specified. (os error 3)
```

This breaks any project that pulls in `turso` on Windows, even as a
transitive dependency. I ran into it through `cubecl` (used by `burn`),
which uses `turso` for its on-disk cache.

This change keeps the `PATH` lookup. If that fails, the script now gets
the SDK location from `find_msvc_tools::find_windows_sdk`, which reads
it from the registry the same way `cc` does, and looks for `rc.exe` in
the SDK's bin directories for the host architecture. The registry also
points to the default install location, so I removed the old Program
Files lookup. `find-msvc-tools` is already in `Cargo.lock` through `cc`,
so nothing new gets downloaded. I added its licenses and a NOTICE entry
as described in CONTRIBUTING.md.

This doesn't touch the `windres` path for GNU targets, which is a
separate problem (#8689).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Closes #9500
2026-10-15 11:31:18 +03:00
..