Skip to content

Add ability to install prebuilt ninja - #1105

Merged
sbc100 merged 1 commit into
mainfrom
add_ninja
Jul 21, 2026
Merged

Add ability to install prebuilt ninja#1105
sbc100 merged 1 commit into
mainfrom
add_ninja

Conversation

@sbc100

@sbc100 sbc100 commented Sep 15, 2022

Copy link
Copy Markdown
Collaborator

We may start using it internally in emscripten. See emscripten-core/emscripten#17809

Its also useful to be able to install it when building other things from source (See #1736)

@sbc100
sbc100 requested review from dschuff and juj September 15, 2022 11:36
@sbc100
sbc100 enabled auto-merge (squash) September 15, 2022 11:38
@dschuff

dschuff commented Sep 15, 2022

Copy link
Copy Markdown
Member

this looks fine, although we probably don't need to land it until/unless we decide to take the dependence for external developers

Comment thread emsdk_manifest.json Outdated
Comment thread emsdk_manifest.json Outdated
@sbc100
sbc100 force-pushed the add_ninja branch 3 times, most recently from 93c3184 to 4dad58a Compare July 21, 2026 16:12
We may start using it internally in emscripten. See
emscripten-core/emscripten#17809
@sbc100
sbc100 disabled auto-merge July 21, 2026 16:14
@sbc100
sbc100 merged commit 944e6e9 into main Jul 21, 2026
9 checks passed
@sbc100
sbc100 deleted the add_ninja branch July 21, 2026 16:20
sbc100 added a commit that referenced this pull request Jul 21, 2026
Now that we have ninja binaries available for install (See #1105),
I don't think we need to be able to build it from source anymore.

We can treat ninja more like node and/or python and just depend
on the binary version of it.
@dschuff

dschuff commented Jul 21, 2026

Copy link
Copy Markdown
Member

So is the plan to just switch to depending on ninja to build the libraries, and delete all the python that does the same thing?

@sbc100

sbc100 commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator Author

Yes, see #1742

sbc100 added a commit that referenced this pull request Jul 21, 2026
…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 can now rely on MSCV being configured in the environment prior
to running emsdk, and since #1105 landed ninja is also always available
via emsdk.

See: #1734
sbc100 added a commit that referenced this pull request Jul 21, 2026
…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 can now rely on MSCV being configured in the environment prior
to running emsdk, and since #1105 landed ninja is also always available
via emsdk.

See: #1734
sbc100 added a commit that referenced this pull request Jul 21, 2026
…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 can now rely on MSCV being configured in the environment prior
to running emsdk, and since #1105 landed ninja is also always available
via emsdk.

See: #1734
sbc100 added a commit that referenced this pull request Jul 21, 2026
…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 can now rely on MSCV being configured in the environment prior
to running emsdk, and since #1105 landed ninja is also always available
via emsdk.

See: #1734
sbc100 added a commit that referenced this pull request Jul 21, 2026
…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 can now rely on MSCV being configured in the environment prior
to running emsdk, and since #1105 landed ninja is also always available
via emsdk.

See: #1734
sbc100 added a commit that referenced this pull request Jul 21, 2026
…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 can now rely on MSCV being configured in the environment prior
to running emsdk, and since #1105 landed ninja is also always available
via emsdk.

See: #1734
sbc100 added a commit that referenced this pull request Jul 27, 2026
…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 can now rely on MSCV being configured in the environment prior
to running emsdk, and since #1105 landed ninja is also always available
via emsdk.

See: #1734
sbc100 added a commit that referenced this pull request Jul 27, 2026
Now that we have ninja binaries available for install (See #1105),
I don't think we need to be able to build it from source anymore.

We can treat ninja more like node and/or python and just depend
on the binary version of it.
sbc100 added a commit that referenced this pull request Aug 4, 2026
Now that we have ninja binaries available for install (See #1105),
I don't think we need to be able to build it from source anymore.

We can treat ninja more like node and/or python and just depend
on the binary version of it.
sbc100 added a commit that referenced this pull request Aug 4, 2026
Now that we have ninja binaries available for install (See #1105),
I don't think we need to be able to build it from source anymore.

We can treat ninja more like node and/or python and just depend
on the binary version of it.
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.

3 participants