aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-06-23 10:58:26 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2021-06-29 20:54:13 +0300
commit1f3adc4dbe20196eb45b7c0cfe502ce108618ada (patch)
tree60771f94cfca0c0761a95eafa584c83f478edeaa /docs
parent4bfee181c5a166e3d429bd265e06d299dce50f30 (diff)
downloadmeson-1f3adc4dbe20196eb45b7c0cfe502ce108618ada.zip
meson-1f3adc4dbe20196eb45b7c0cfe502ce108618ada.tar.gz
meson-1f3adc4dbe20196eb45b7c0cfe502ce108618ada.tar.bz2
Add feed arg to custom_target()
Diffstat (limited to 'docs')
-rw-r--r--docs/markdown/Reference-manual.md4
-rw-r--r--docs/markdown/snippets/custom-target-feed.md4
2 files changed, 8 insertions, 0 deletions
diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md
index 388c975..16fcbbf 100644
--- a/docs/markdown/Reference-manual.md
+++ b/docs/markdown/Reference-manual.md
@@ -383,6 +383,10 @@ following.
`{'NAME1': 'value1', 'NAME2': 'value2'}` or `['NAME1=value1', 'NAME2=value2']`,
or an [`environment()` object](#environment-object) which allows more
sophisticated environment juggling.
+- `feed` *(since 0.59.0)*: there are some compilers that can't be told to read
+ their input from a file and instead read it from standard input. When this
+ argument is set to true, Meson feeds the input file to `stdin`. Note that
+ your argument list may not contain `@INPUT@` when feed mode is active.
The list of strings passed to the `command` keyword argument accept
the following special string substitutions:
diff --git a/docs/markdown/snippets/custom-target-feed.md b/docs/markdown/snippets/custom-target-feed.md
new file mode 100644
index 0000000..f965152
--- /dev/null
+++ b/docs/markdown/snippets/custom-target-feed.md
@@ -0,0 +1,4 @@
+## The custom_target() function now accepts a feed argument
+
+It is now possible to provide a `feed: true` argument to `custom_target()` to
+pipe the target's input file to the program's standard input.