microsoft / microsoft/vscode-cmake-tools
The buildKitTargetOs is unknown if a kit is defined with toolchainFile only
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.7k
- Forks
- 546
- Avg merge
- 2d 16h
- Merged PRs (30d)
- 32
Description
### Brief Issue Summary
I have a kit like this;
```json
{
"name": "WASM",
"toolchainFile": "C:\\emsdk\\upstream\\emscripten\\cmake\\Modules\\Platform\\Emscripten.cmake"
}
```
The ${buildKitTargetOs} becomes unknown. The compiler is defined in Emscripten.cmake
### CMake Tools Diagnostics
```shell
```
### Debug Log
```shell
```
### Additional Information
_No response_
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the kit configuration that contains only the Emscripten toolchainFile, then trace kit handling and the ${buildKitTargetOs} resolution entry point. Add coverage for this configuration and verify that the target OS is resolved instead of reported as unknown.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, typescript
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100