From c9a89027accff8385028a2b5e93465d28c63be36 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Sun, 15 Apr 2018 14:44:41 +0530 Subject: run_command: Add new kwarg 'capture' capture: false means we won't try to read the stdout at all. Closes https://github.com/mesonbuild/meson/issues/3364 --- docs/markdown/snippets/run_command_check.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'docs/markdown') diff --git a/docs/markdown/snippets/run_command_check.md b/docs/markdown/snippets/run_command_check.md index 018456b..35bdcdd 100644 --- a/docs/markdown/snippets/run_command_check.md +++ b/docs/markdown/snippets/run_command_check.md @@ -1,4 +1,9 @@ -## New 'check' keyword argument for the run_command function +## New keyword arguments: 'check' and 'capture' for run_command() -If `check` is `true`, then the configuration will fail if the command returns a +If `check:` is `true`, then the configuration will fail if the command returns a non-zero exit status. The default value is `false` for compatibility reasons. + +`run_command()` used to always capture the output and stored it for use in +build files. However, sometimes the stdout is in a binary format which is meant +to be discarded. For that case, you can now set the `capture:` keyword argument +to `false`. -- cgit v1.1