[meson] Tests fail to build due to race in protocol header generation
While packaging for FreeBSD I've noticed Meson build fails only on certain release/architecture combinations. Restarting build one or more times makes it succeed. Reproducible with -j1
build.
FAILED: tests/59830eb@@connection-test@exe/connection-test.c.o
cc -Itests/59830eb@@connection-test@exe -Itests -I../tests -Isrc -I../src -Xclang -fcolor-diagnostics -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -O2 -g -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -fvisibility=hidden -isystem/usr/local/include/libepoll-shim -pthread -MD -MQ 'tests/59830eb@@connection-test@exe/connection-test.c.o' -MF 'tests/59830eb@@connection-test@exe/connection-test.c.o.d' -o 'tests/59830eb@@connection-test@exe/connection-test.c.o' -c ../tests/connection-test.c
In file included from ../tests/connection-test.c:43:
In file included from ../tests/test-compositor.h:30:
../src/wayland-client.h:40:10: fatal error: 'wayland-client-protocol.h' file not found
#include "wayland-client-protocol.h"
^~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
https://reviews.freebsd.org/P363
https://reviews.freebsd.org/P364