The check argument is now set when calling run_command in meson.build

This commit is contained in:
Scoopta 2022-02-13 21:05:17 -08:00
parent d2cee86857
commit e1355f1ee2

View File

@ -14,7 +14,7 @@ hg = find_program('hg', native : true, required : false)
version = meson.project_version()
if hg.found()
version = run_command(hg, 'identify').stdout().strip()
version = run_command(hg, 'identify', check : true).stdout().strip()
endif
add_project_arguments('-D_GNU_SOURCE', '-DVERSION="' + version + '"', language : 'c')