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.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2022-11-08 18:18:34 +01:00
parent d6b4d1c7c4
commit c47511da7e
3 changed files with 165 additions and 80 deletions
+1
View File
@@ -4,6 +4,7 @@
#include "build.h"
#include "macro.h"
#include "version.h"
const char* const systemd_features =