From 35077afb6831ced69f758c21e43d4021225a373c Mon Sep 17 00:00:00 2001 From: Nikolaos Chatzikonstantinou Date: Sat, 22 Oct 2022 15:35:29 -0400 Subject: build: fix run_command warning The default behavior of check: false is going to change to true in the future, see . Thus we are explicit about the desired behavior. The error in uname is important but with test we check ourselves using returncode(). This fixes #556. --- meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 326352ba..46879f2a 100644 --- a/meson.build +++ b/meson.build @@ -36,7 +36,7 @@ endif option_os = get_option('os') if option_os == '' uname = find_program('uname') - r = run_command(uname, '-s') + r = run_command(uname, '-s', check: true) os = r.stdout().strip() os = '-'.join(os.split('/')) else @@ -84,7 +84,7 @@ else endif if get_option('split-usr') == 'auto' - split_usr = run_command('test', '-L', '/bin').returncode() != 0 + split_usr = run_command('test', '-L', '/bin', check: false).returncode() != 0 else split_usr = get_option('split-usr') == 'true' endif -- cgit v1.2.3