mirror of
https://github.com/allankoechke/turso.git
synced 2026-11-29 09:33:48 +00:00
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