]> git.ipfire.org Git - thirdparty/git.git/commit
meson: fix dependencies for generated headers
authorPatrick Steinhardt <ps@pks.im>
Wed, 22 Jan 2025 12:05:47 +0000 (13:05 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 22 Jan 2025 20:37:33 +0000 (12:37 -0800)
commit53d75bd3e4f1e1d6c721fd90f9754a80caa61fd5
tree8b45fc530d0e58d545dc468aaa1c42f27f26ca69
parent6ff99174d152f0e1359c30e30ef08ab75b137037
meson: fix dependencies for generated headers

We generate a couple of headers from our documentation. These headers
are added to the libgit sources, but two of them aren't used by the
library, but instead by our builtins. This can cause parallel builds to
fail because the builtin object may be compiled before the header was
generated.

Fix the issue by adding both "config-list.h" and "hook-list.h" to the
list of builtin sources. While "command-list.h" is generated similarly,
it is used by "help.c" and thus part of the libgit sources indeed.

Reported-by: Evan Martin <evan.martin@gmail.com>
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
meson.build