1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-01-18 04:58:51 +02:00

Update meson minimum version to 0.47.

This allows enabling the check option for run_command, which automatically fails when the command fails.
This commit is contained in:
David Steele 2024-04-25 18:35:48 +10:00
parent 4ea4e3f380
commit 55e996912a

View File

@ -6,7 +6,7 @@ project(
['c'],
version: '2.52dev',
license: 'MIT',
meson_version: '>=0.45',
meson_version: '>=0.47',
default_options: [
# Core options
'buildtype=release',
@ -122,7 +122,7 @@ file_prefix = run_command(
meson.current_source_dir(),
meson.current_build_dir(),
],
# check: true, # This should be set when the minimum supported meson version is >= 0.47
check: true,
).stdout().strip()
add_project_arguments(cc.get_supported_arguments('-fmacro-prefix-map=@0@/src/=' . format(file_prefix)), language: 'c')