From cc546d7af1de99ba7011a60a8840c12b1c04cc28 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Sat, 26 Nov 2022 15:18:03 +0000 Subject: [PATCH] build: Add a check argument to run_command() Silence a Meson warning. --- demos/gtk-demo/meson.build | 2 +- demos/widget-factory/meson.build | 2 +- gtk/meson.build | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/demos/gtk-demo/meson.build b/demos/gtk-demo/meson.build index ef89fbc7d2..5537cf20a5 100644 --- a/demos/gtk-demo/meson.build +++ b/demos/gtk-demo/meson.build @@ -156,7 +156,7 @@ demos_h = custom_target('gtk4 demo header', objcopy_supports_add_symbol = false objcopy = find_program('objcopy', required : false) if objcopy.found() - objcopy_supports_add_symbol = run_command(objcopy, '--help').stdout().contains('--add-symbol') + objcopy_supports_add_symbol = run_command(objcopy, '--help', check: false).stdout().contains('--add-symbol') endif ld = find_program('ld', required : false) diff --git a/demos/widget-factory/meson.build b/demos/widget-factory/meson.build index 550eb09bd9..0513555a3f 100644 --- a/demos/widget-factory/meson.build +++ b/demos/widget-factory/meson.build @@ -3,7 +3,7 @@ objcopy_supports_add_symbol = false objcopy = find_program('objcopy', required : false) if objcopy.found() - objcopy_supports_add_symbol = run_command(objcopy, '--help').stdout().contains('--add-symbol') + objcopy_supports_add_symbol = run_command(objcopy, '--help', check: false).stdout().contains('--add-symbol') endif ld = find_program('ld', required : false) diff --git a/gtk/meson.build b/gtk/meson.build index 971d59fd8c..2e9f7c9368 100644 --- a/gtk/meson.build +++ b/gtk/meson.build @@ -800,7 +800,7 @@ endif objcopy_supports_add_symbol = false objcopy = find_program('objcopy', required : false) if objcopy.found() - objcopy_supports_add_symbol = run_command(objcopy, '--help').stdout().contains('--add-symbol') + objcopy_supports_add_symbol = run_command(objcopy, '--help', check: false).stdout().contains('--add-symbol') endif ld = find_program('ld', required : false)