From 2c079d855ed87488bdcc6c5c06f59abdb9b85b6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Volker=20Wei=C3=9Fmann?= Date: Thu, 14 Oct 2021 01:35:14 +0200 Subject: Added warning if run_command is called without the check kwarg --- docs/markdown/snippets/check_false_warning.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 docs/markdown/snippets/check_false_warning.md (limited to 'docs/markdown/snippets') 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 +``` -- cgit v1.1