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:

221871fb6d ("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>
This commit is contained in:
Jordan Justen 2021-08-17 02:11:10 -07:00
parent 56ea259b42
commit cf23fbb040

View File

@ -22,7 +22,8 @@ project(
'mesa',
['c', 'cpp'],
version : run_command(
[find_program('python3', 'python'), 'bin/meson_get_version.py']
[find_program('python3', 'python'), 'bin/meson_get_version.py'],
check : true
).stdout(),
license : 'MIT',
meson_version : '>= 0.52',