meson: Check that bin/meson_get_version.py ran without an error
authorJordan Justen <jordan.l.justen@intel.com>
Tue, 17 Aug 2021 09:11:10 +0000 (02:11 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Tue, 17 Aug 2021 22:18:03 +0000 (15:18 -0700)
commitcf23fbb040f15e0b035e8d5ba90761a7d5418e68
tree09411985057ce6ec8089cad7436224decb474bae
parent56ea259b42e20d5136dd3842c1264f5ab1775960
meson: Check that bin/meson_get_version.py ran without an error

According to https://mesonbuild.com/Reference-manual.html, the check
parameter is supported since meson 0.47.0.

This could have helped to catch the issue fixed by:

221871fb6da ("meson: Search for python3 before python for bin/meson_get_version.py")

as it would have caused the build to fail immediately.

It's still a good idea to check the result even though that issue is
now fixed.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12404>
meson.build