Update documentation for run_command [skip ci]

This commit is contained in:
Andrei Alexeyev 2018-05-22 04:41:28 +03:00
parent d72f9a3e0f
commit 2e2d14c9d7
No known key found for this signature in database
GPG Key ID: 363707CD4C7FE8A4
1 changed files with 8 additions and 1 deletions

View File

@ -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