Build fails if forcing ninja to use less threads
GTK+ git master cbb1e74b
meson 0.47.1
ninja 1.8.2
CPU with 2 cores / 4 (hyper)threads
$ mkdir -p gtk4/build
$ cd gtk4/build
$ ls -l ../../ | grep gtk
gtk+.git
$ meson . ../../gtk+.git --prefix=MY_PREFIX_DIR -Dbroadway-backend=true -Dwayland-backend=false -Dvulkan=no
$ ninja -j1 [ or -j2 ]
[1/1298] Generating gdkresources_c with a custom command.
[2/1298] Generating gdkresources_h with a custom command.
[3/1298] Generating clienthtml.h with a custom command.
[4/1298] Generating gdkenumtypes.h with a meson_exe.py custom command.
[5/1298] Compiling C object 'gdk/broadway/gdk@broadway@@gdk-broadway@sta/broadway-output.c.o'.
[6/1298] Generating gdkmarshalers_c with a custom command.
INFO: Reading ../../gtk+.git/gdk/gdkmarshalers.list...
[7/1298] Generating gdkmarshalers_h with a custom command.
INFO: Reading ../../gtk+.git/gdk/gdkmarshalers.list...
[8/1298] Generating gdkenumtypes.c with a meson_exe.py custom command.
[9/1298] Compiling C object 'gdk/broadway/gdk@broadway@@gdk-broadway@sta/broadway-server.c.o'.
FAILED: gdk/broadway/gdk@broadway@@gdk-broadway@sta/broadway-server.c.o
cc -Igdk/broadway/gdk@broadway@@gdk-broadway@sta -Igdk/broadway -I../../gtk+.git/gdk/broadway -I. -I../../gtk+.git/ -Igdk -I../../gtk+.git/gdk -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -IMY_PREFIX_DIR/include/pango-1.0 -I/usr/include/graphene-1.0 -I/usr/lib/x86_64-linux-gnu/graphene-1.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/harfbuzz -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=gnu99 -O0 -g -DG_LOG_USE_STRUCTURED=1 -DGLIB_MIN_REQUIRED_VERSION=GLIB_VERSION_2_54 -DGLIB_MAX_ALLOWED_VERSION=GLIB_VERSION_2_56 '-DGTK_VERSION="3.94.0"' -D_GNU_SOURCE -DG_ENABLE_DEBUG -fPIC -pthread -mfpmath=sse -msse -msse2 -DGDK_COMPILATION '-DG_LOG_DOMAIN="Gdk"' -fno-strict-aliasing -Wpointer-arith -Wmissing-declarations -Wimplicit-function-declaration -Wformat=2 -Wformat-nonliteral -Wformat-security -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wundef -Wunused -Wcast-align -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-include-dirs -Wlogical-op -Wswitch-default -Wswitch-enum -Wignored-qualifiers -Werror=redundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=empty-body -Werror=write-strings -fvisibility=hidden -MD -MQ 'gdk/broadway/gdk@broadway@@gdk-broadway@sta/broadway-server.c.o' -MF 'gdk/broadway/gdk@broadway@@gdk-broadway@sta/broadway-server.c.o.d' -o 'gdk/broadway/gdk@broadway@@gdk-broadway@sta/broadway-server.c.o' -c ../../gtk+.git/gdk/broadway/broadway-server.c
../../gtk+.git/gdk/broadway/broadway-server.c:1162:10: fatal error: broadwayjs.h: No such file or directory
#include "broadwayjs.h"
^~~~~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.
No problems with just ninja.