aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets
diff options
context:
space:
mode:
authorVolker Weißmann <volker.weissmann@gmx.de>2021-10-14 01:35:14 +0200
committerEli Schwartz <eschwartz93@gmail.com>2021-10-30 22:26:28 -0400
commit2c079d855ed87488bdcc6c5c06f59abdb9b85b6c (patch)
tree62206d581a9ff764d948da94d4478dba85bce765 /docs/markdown/snippets
parent3c103fe49ccca848d255b9b00365e74ce35400a4 (diff)
downloadmeson-2c079d855ed87488bdcc6c5c06f59abdb9b85b6c.zip
meson-2c079d855ed87488bdcc6c5c06f59abdb9b85b6c.tar.gz
meson-2c079d855ed87488bdcc6c5c06f59abdb9b85b6c.tar.bz2
Added warning if run_command is called without the check kwarg
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r--docs/markdown/snippets/check_false_warning.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/markdown/snippets/check_false_warning.md b/docs/markdown/snippets/check_false_warning.md
new file mode 100644
index 0000000..50214b7
--- /dev/null
+++ b/docs/markdown/snippets/check_false_warning.md
@@ -0,0 +1,14 @@
+## Warning if check kwarg of run_command is missing
+
+The `check` kwarg of `run_command` currently defaults to `false`.
+Because we want to change that, running
+```meson
+run_command('cmd')
+```
+now results in:
+```text
+WARNING: You should add the boolean check kwarg to the run_command call.
+ It currently defaults to false,
+ but it will default to true in future releases of meson.
+ See also: https://github.com/mesonbuild/meson/issues/9300
+```