aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2021-02-07 11:46:41 +0000
committerGitHub <noreply@github.com>2021-02-07 11:46:41 +0000
commit8b82ffa9e423558d7644c7135db4114f59537829 (patch)
tree90a326f8e796d4a81e98e0639fe67b6a0459ed08 /docs/markdown
parent8e73e5fe1c4fcd5a875cb4777c7938f9069e0102 (diff)
parentf63e168685c22a749502161355a7ea98a6c5344a (diff)
downloadmeson-8b82ffa9e423558d7644c7135db4114f59537829.zip
meson-8b82ffa9e423558d7644c7135db4114f59537829.tar.gz
meson-8b82ffa9e423558d7644c7135db4114f59537829.tar.bz2
Merge pull request #8305 from xclaesse/run-target-env
run_target: Add env kwarg
Diffstat (limited to 'docs/markdown')
-rw-r--r--docs/markdown/Reference-manual.md4
-rw-r--r--docs/markdown/snippets/customtarget_env.md2
2 files changed, 5 insertions, 1 deletions
diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md
index 14802eb..f623728 100644
--- a/docs/markdown/Reference-manual.md
+++ b/docs/markdown/Reference-manual.md
@@ -1504,6 +1504,10 @@ and subdirectory the target was defined in, respectively.
- `depends` is a list of targets that this target depends on but which
are not listed in the command array (because, for example, the
script does file globbing internally)
+- `env` *(since 0.57.0)*: environment variables to set, such as
+ `{'NAME1': 'value1', 'NAME2': 'value2'}` or `['NAME1=value1', 'NAME2=value2']`,
+ or an [`environment()` object](#environment-object) which allows more
+ sophisticated environment juggling.
### set_variable()
diff --git a/docs/markdown/snippets/customtarget_env.md b/docs/markdown/snippets/customtarget_env.md
index 69bfc0d..f2d651b 100644
--- a/docs/markdown/snippets/customtarget_env.md
+++ b/docs/markdown/snippets/customtarget_env.md
@@ -1,4 +1,4 @@
-## `custom_target()` now accepts an `env` keyword argument
+## `custom_target()` and `run_target()` now accepts an `env` keyword argument
Environment variables can now be passed to the `custom_target()` command.