meson: fix race condition revealed by using 0.44
authorDylan Baker <dylan@pnwbakers.com>
Thu, 26 Apr 2018 17:20:57 +0000 (10:20 -0700)
committerDylan Baker <dylan@pnwbakers.com>
Fri, 27 Apr 2018 17:24:51 +0000 (10:24 -0700)
commit7772de5283cf30b06e75f9e4914a75f54ca37564
tree765ff2fdb16e8233f54692532a8a9fb98c059b90
parent0c23bd76d1f494956996d8c0d8f7dcdaa8bdc12f
meson: fix race condition revealed by using 0.44

Previously there was a special target that blocked for the generation of
anv_entrypoints.h, with meson 0.44 we don't need this, we can use a new
language feature instead. The problem is that previously that blocking
target would hide a race condition for the generation of another header,
anv_extensions.h. Now the build sometimes fails when anv_extensions.h is
not generated in time.

v2: - clarify the race condition in the commit message (Emil)

CC: Mark Janes <mark.a.janes@intel.com>
Fixes: 92550d9b16d2b295bdac087f31b1fd6d0f808e02
       ("meson: remove workaround for custom target creating .h and .c files")
Signed-off-by: Dylan Baker <dylan.c.baker@intel.com>
Reviewed-by: Scott D Phillips <scott.d.phillips@intel.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/intel/vulkan/meson.build