Skip to content

[windows] Always use Ninja generator when build cmake projects form source#1736

Draft
sbc100 wants to merge 2 commits into
mainfrom
ninja_windows
Draft

[windows] Always use Ninja generator when build cmake projects form source#1736
sbc100 wants to merge 2 commits into
mainfrom
ninja_windows

Conversation

@sbc100

@sbc100 sbc100 commented Jul 15, 2026

Copy link
Copy Markdown
Collaborator

When building tools from source, unconditionally use the Ninja
generator.

This massively simplifies the Windows build process allowing for the
removal of --vs2019, --vs2022, --mingw and --generator flags
along with vswhere detection, Visual Studio multi-config output paths,
and the mingw SDK package.

Instead we now rely on MSCV being configured in the environment prior
to running emsdk. i.e. We expect windows users to run in a Visual Studio
command prompt (or with vcvarsall.bat having been already run). This
seems like a more sensible soltution that trying to build visual studio selection
into emsdk itself. i.e. we can just expect users to have already selected their
prefered visual studio version.

See: #1734

@sbc100 sbc100 changed the title [windows] Always use Ninja generator on Windows [windows] Always use Ninja for building from source on Windows Jul 15, 2026
@sbc100 sbc100 changed the title [windows] Always use Ninja for building from source on Windows [windows] Always use Ninja when building from source on Windows Jul 15, 2026
@sbc100
sbc100 marked this pull request as draft July 15, 2026 23:15
…ource

When building tools from source, unconditionally use the Ninja
generator.

This massively simplifies the Windows build process allowing for the
removal of `--vs2019`, `--vs2022`, `--mingw` and `--generator` flags
along with `vswhere` detection, Visual Studio multi-config output paths,
and the `mingw` SDK package.

Instead we now rely on MSCV being configured in the environment prior
to running emsdk.

See: #1734
@sbc100 sbc100 changed the title [windows] Always use Ninja when building from source on Windows [windows] Always use Ninja generator when build cmake projects form source Jul 15, 2026
Update README.md to list `ninja` among required tools when building
from source across platforms, and specify running inside a Visual
Studio Developer Command Prompt on Windows. Also update the test
comment in `test.py` regarding building from source on Windows.

See: #1734
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant