diff options
Diffstat (limited to 'docs/markdown')
-rw-r--r-- | docs/markdown/Reference-manual.md | 9 | ||||
-rw-r--r-- | docs/markdown/snippets/run_command_check.md | 4 |
2 files changed, 12 insertions, 1 deletions
diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md index 2498b98..1e0e4c9 100644 --- a/docs/markdown/Reference-manual.md +++ b/docs/markdown/Reference-manual.md @@ -1016,7 +1016,7 @@ Project supports the following keyword arguments. ### run_command() ``` meson - runresult run_command(command, list_of_args) + runresult run_command(command, list_of_args, ...) ``` Runs the command specified in positional arguments. @@ -1031,6 +1031,13 @@ Meson will set three environment variables `MESON_SOURCE_ROOT`, directory, build directory and subdirectory the target was defined in, respectively. +This function has one keyword argument. + + - `check` takes a boolean. If `true`, the exit status code of the command will + be checked, and the configuration will fail if it is non-zero. The default is + `false`. + Since 0.47.0 + See also [External commands](External-commands.md). ### run_target diff --git a/docs/markdown/snippets/run_command_check.md b/docs/markdown/snippets/run_command_check.md new file mode 100644 index 0000000..018456b --- /dev/null +++ b/docs/markdown/snippets/run_command_check.md @@ -0,0 +1,4 @@ +## New 'check' keyword argument for the run_command function + +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. |