<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/xback/tools/ninja, branch master</title>
<subtitle>Staging tree of Koen Vandeputte</subtitle>
<id>https://git.openwrt.org/openwrt/staging/xback/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/xback/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/xback/'/>
<updated>2026-11-26T16:25:20Z</updated>
<entry>
<title>tools/ninja: support the pipe-based jobserver of GNU Make</title>
<updated>2026-11-26T16:25:20Z</updated>
<author>
<name>Koen Vandeputte</name>
</author>
<published>2026-11-04T10:32:56Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/xback/commit/?id=aa8a2829ab842b7955cf3f8870725c0eeaca97f1'/>
<id>urn:sha1:aa8a2829ab842b7955cf3f8870725c0eeaca97f1</id>
<content type='text'>
Since the update to 1.13.1, ninja uses its own jobserver client instead
of the patch OpenWrt carried. That client only implements the fifo form
of GNU Make 4.4 and later. GNU Make 4.3, the version of Ubuntu 22.04 and
24.04 and of Debian 12, passes its jobserver as a pair of pipe
descriptors, which ninja ignores with "Pipe-based protocol is not
supported!". Every ninja build then runs as many jobs as there are CPUs
plus two, whatever -j the build was started with: tools/cmake and all
CMake and Meson packages.

Building several trees at -j6 on a 32 thread host ran 34 compilers per
tree in tools/cmake, filling 30 GB of RAM and 39 GB of swap.

Support the pipe form on Linux: open new non-blocking file descriptions
of the inherited pipe through /proc/self/fd, so that make's own
descriptors stay blocking. With make -j4, tools/cmake now runs at most
4 compilers at once, and two ninjas under one make share its 4 slots.

Assisted-by: Claude Opus 5.5
Signed-off-by: Koen Vandeputte &lt;koen.vandeputte@citymesh.com&gt;
</content>
</entry>
<entry>
<title>tools/ninja: update to 1.13.2</title>
<updated>2025-11-26T08:37:03Z</updated>
<author>
<name>Nick Hainke</name>
</author>
<published>2025-11-25T18:47:16Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/xback/commit/?id=e7022ec14edb8c180930d2e1451304af636e804e'/>
<id>urn:sha1:e7022ec14edb8c180930d2e1451304af636e804e</id>
<content type='text'>
Release Notes:
https://github.com/ninja-build/ninja/releases/tag/v1.13.2

Link: https://github.com/openwrt/openwrt/pull/20935
Signed-off-by: Nick Hainke &lt;vincent@systemli.org&gt;
</content>
</entry>
<entry>
<title>tools/ninja: update to 1.13.1</title>
<updated>2025-10-04T18:34:38Z</updated>
<author>
<name>Rosen Penev</name>
</author>
<published>2025-09-29T18:45:23Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/xback/commit/?id=2dae098d69324a3781ed8e1beea92afb3b233b69'/>
<id>urn:sha1:2dae098d69324a3781ed8e1beea92afb3b233b69</id>
<content type='text'>
Jobserver support was merged upstream.

Switch to local tarball archives. Smaller and more standard.

Signed-off-by: Rosen Penev &lt;rosenp@gmail.com&gt;
Link: https://github.com/openwrt/openwrt/pull/20267
Signed-off-by: Hauke Mehrtens &lt;hauke@hauke-m.de&gt;
</content>
</entry>
<entry>
<title>tools/ninja: update to 1.12.1</title>
<updated>2024-10-14T11:58:44Z</updated>
<author>
<name>Michael Pratt</name>
</author>
<published>2024-10-12T18:55:04Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/xback/commit/?id=ac483e1c2a37180aea9ab985aefde8f236d582a6'/>
<id>urn:sha1:ac483e1c2a37180aea9ab985aefde8f236d582a6</id>
<content type='text'>
Update to the most recent stable release,
including a new job scheduler and bug fixes.

Backport a patch to assist in reworking jobserver support.

The original patch for jobserver support requires reworking
due to the function CanRunMore() and its usage
being significantly changed, including the return
becoming an integer instead of a boolean.

AcquireToken() must now be used in CanRunMore()
in order to quantify how much the job searching loop
is able to run at any time, and in order to do so
CanRunMore() cannot be a constant function anymore.

Added:
 - 010-backport-gtest.patch

Manually Adjust:
 - 100-make_jobserver_support.patch

Signed-off-by: Michael Pratt &lt;mcpratt@pm.me&gt;
Link: https://github.com/openwrt/openwrt/pull/16693
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>tools/ninja: use existing ninja to build ninja</title>
<updated>2024-10-14T11:58:44Z</updated>
<author>
<name>Michael Pratt</name>
</author>
<published>2024-08-02T08:02:58Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/xback/commit/?id=df303c7ef49d8dc8a0061e002ea021d4e7c8f529'/>
<id>urn:sha1:df303c7ef49d8dc8a0061e002ea021d4e7c8f529</id>
<content type='text'>
Add methods to skip the building and execution of Ninja by python
in order to allow Make to execute Ninja after the configure script.

This allows the user to build Ninja only once
if they already have an older version of Ninja built.

It also allows the user to test the jobserver functionality
by having Ninja built twice (clean then compile).

Signed-off-by: Michael Pratt &lt;mcpratt@pm.me&gt;
Link: https://github.com/openwrt/openwrt/pull/16693
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>tools/ninja: cleanup Makefile</title>
<updated>2024-10-14T11:58:44Z</updated>
<author>
<name>Michael Pratt</name>
</author>
<published>2024-07-22T19:51:12Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/xback/commit/?id=3efedda1daa8c8fd048b0df926a04086e054c365'/>
<id>urn:sha1:3efedda1daa8c8fd048b0df926a04086e054c365</id>
<content type='text'>
Use default CXXFLAGS and LDFLAGS variables.

Directly add --verbose flag without a variable.

Split up lines for script arguments.

Delete unnecessary lines.

Signed-off-by: Michael Pratt &lt;mcpratt@pm.me&gt;
Link: https://github.com/openwrt/openwrt/pull/16693
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>tools/ninja: update to 1.11.1</title>
<updated>2023-01-24T22:13:25Z</updated>
<author>
<name>Nick Hainke</name>
</author>
<published>2022-10-29T08:22:36Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/xback/commit/?id=58a8ad38016cd8a27ab3c95ab38cff7b417c0cff'/>
<id>urn:sha1:58a8ad38016cd8a27ab3c95ab38cff7b417c0cff</id>
<content type='text'>
Release Notes:
https://github.com/ninja-build/ninja/releases/tag/v1.11.1

Sync the "100-make_jobserver_support.patch" with the PR:
https://github.com/ninja-build/ninja/pull/1140

Signed-off-by: Nick Hainke &lt;vincent@systemli.org&gt;
</content>
</entry>
<entry>
<title>tools/ninja: update to 1.11.0</title>
<updated>2022-06-13T17:50:25Z</updated>
<author>
<name>Rosen Penev</name>
</author>
<published>2022-05-17T00:21:48Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/xback/commit/?id=a7be143646db9365f6ac8d5749a2dfef805789cb'/>
<id>urn:sha1:a7be143646db9365f6ac8d5749a2dfef805789cb</id>
<content type='text'>
Updated patchset to latest.

Signed-off-by: Rosen Penev &lt;rosenp@gmail.com&gt;
</content>
</entry>
<entry>
<title>tools: build ninja before ccache to fix the build order</title>
<updated>2021-06-12T12:33:57Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2021-06-12T12:24:40Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/xback/commit/?id=fa0aea53b2f1dccc2073efac8020151960d25513'/>
<id>urn:sha1:fa0aea53b2f1dccc2073efac8020151960d25513</id>
<content type='text'>
Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>build: add ninja build tool and make it available for cmake</title>
<updated>2021-06-12T08:46:39Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2021-06-06T12:31:01Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/xback/commit/?id=97258f53634d7237a2962aec3387f011047ce83b'/>
<id>urn:sha1:97258f53634d7237a2962aec3387f011047ce83b</id>
<content type='text'>
ninja is faster at building cmake packages than make, and according to reports
also more reliable at handling parallel builds
This commit includes a patch that adds GNU make jobserver support, in order to
allow more precise control over the number of parallel tasks

Enable parallel build by default for packages using ninja

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
Signed-off-by: Rosen Penev &lt;rosenp@gmail.com&gt;
</content>
</entry>
</feed>
