microsoft / microsoft/vscode-cmake-tools

The buildKitTargetOs is unknown if a kit is defined with toolchainFile only

Open
#4,274 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement Feature: kits help wanted
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.