From 359f8bfefb28852de06a1c7da3a205599423453e Mon Sep 17 00:00:00 2001 From: MoonlightWave-12 <135532-MoonlightWave-12@users.noreply.gitlab.gnome.org> Date: Fri, 16 Aug 2024 13:27:23 +0200 Subject: [PATCH] meson.build: Check the exit-status-code of `run_command()` Part-of: --- meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index d8aeb2b9..22cd2139 100644 --- a/meson.build +++ b/meson.build @@ -88,8 +88,8 @@ message('\n'.join(summary)) # 'rust-analyzer' does not work correctly, when the paths in 'Cargo.toml' have '@path@' in them. cp = find_program('cp') sed = find_program('sed') -copy_cargo_toml = run_command('cp', 'Cargo.toml', 'meson_Cargo.toml.in') -prepare_cargo_toml = run_command('sed', '-i', 's/path = "/path = "@path@\//', 'meson_Cargo.toml.in') +copy_cargo_toml = run_command('cp', 'Cargo.toml', 'meson_Cargo.toml.in', check: true) +prepare_cargo_toml = run_command('sed', '-i', 's/path = "/path = "@path@\//', 'meson_Cargo.toml.in', check: true) path_data = configuration_data() path_data.set('path', meson.source_root())