]> git.ipfire.org Git - thirdparty/systemd.git/commit - meson.build
meson: add version.h as dependency to more targets
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 8 Nov 2022 12:37:27 +0000 (13:37 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 8 Nov 2022 17:18:34 +0000 (18:18 +0100)
commitc47511da7e2bab1a429fc1958a73d3f426ebb3da
tree924ddbea6299049e3000f1ff85ddf3be95be55fc
parentd6b4d1c7c42db5b53ece960c279856d96abbf216
meson: add version.h as dependency to more targets

version.h can be generated after compilation starts, creating a race condition
between compilation of various .c files and creation of version.h. Let's add it
as a dependency to more build targets that require version.h or build.h.

So far we played whack'a'mole by adding versiondep whenever compilation failed.
In principle any target which includes compilation (i.e. any that has .c
sources directly), could require this. I don't understand why we didn't see
more failures… But it seems reasonable to just add the dependency more widely.
meson.build
src/basic/build.c
src/shared/meson.build