aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/Reference-manual.md
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2019-01-20 07:15:20 +0100
committerJussi Pakkanen <jpakkane@gmail.com>2019-01-27 19:24:15 +0200
commit33d82201bd4114d9bd81b45bce86d7938bc30869 (patch)
tree303de8077bedcdec5d82615547f2fd151675b386 /docs/markdown/Reference-manual.md
parentc07e5124bcb2eb5f4a078fe537d42c5ff64e60af (diff)
downloadmeson-33d82201bd4114d9bd81b45bce86d7938bc30869.zip
meson-33d82201bd4114d9bd81b45bce86d7938bc30869.tar.gz
meson-33d82201bd4114d9bd81b45bce86d7938bc30869.tar.bz2
run_command: add env kwarg
Diffstat (limited to 'docs/markdown/Reference-manual.md')
-rw-r--r--docs/markdown/Reference-manual.md6
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md
index e913e25..db43813 100644
--- a/docs/markdown/Reference-manual.md
+++ b/docs/markdown/Reference-manual.md
@@ -1183,12 +1183,14 @@ and 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.
+This function supports the following keyword arguments:
- `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
+ - `env` an [environment object](#environment-object) to use a custom environment
+ Since 0.50.0
See also [External commands](External-commands.md).
@@ -2175,7 +2177,7 @@ and has the following methods:
This object is returned by [`environment()`](#environment) and stores
detailed information about how environment variables should be set
during tests. It should be passed as the `env` keyword argument to
-tests. It has the following methods.
+tests and other functions. It has the following methods.
- `append(varname, value1, value2, ...)` appends the given values to
the old value of the environment variable, e.g. `env.append('FOO',