diff options
author | Laurin-Luis Lehning <65224843+e820@users.noreply.github.com> | 2021-06-18 01:42:57 +0200 |
---|---|---|
committer | Laurin-Luis Lehning <65224843+e820@users.noreply.github.com> | 2021-06-21 09:15:13 +0200 |
commit | d5ed8f61a5cd7a5d384ccd59abc219154a00d42c (patch) | |
tree | a1760fcec149f9c06e27ca98f86e028a5c736f4a /docs | |
parent | 377adfb6fbf526c56b595ef09840d5b59168162a (diff) | |
download | meson-d5ed8f61a5cd7a5d384ccd59abc219154a00d42c.zip meson-d5ed8f61a5cd7a5d384ccd59abc219154a00d42c.tar.gz meson-d5ed8f61a5cd7a5d384ccd59abc219154a00d42c.tar.bz2 |
interpreter: Move argument checks from add_*_arguments to compiler.get_supported_arguments
Diffstat (limited to 'docs')
-rw-r--r-- | docs/markdown/snippets/compiler_argument_checking.md | 6 | ||||
-rw-r--r-- | docs/markdown/snippets/required_project_arguments.md | 8 |
2 files changed, 6 insertions, 8 deletions
diff --git a/docs/markdown/snippets/compiler_argument_checking.md b/docs/markdown/snippets/compiler_argument_checking.md new file mode 100644 index 0000000..0e038ec --- /dev/null +++ b/docs/markdown/snippets/compiler_argument_checking.md @@ -0,0 +1,6 @@ +## Compiler argument checking for `get_supported_arguments` + +The compiler method `get_supported_arguments` now supports +a new keyword argument named `checked` that can be set to +one of `warn`, `require` or `off` (defaults to `off`) to +enforce argument checks. diff --git a/docs/markdown/snippets/required_project_arguments.md b/docs/markdown/snippets/required_project_arguments.md deleted file mode 100644 index 40af830..0000000 --- a/docs/markdown/snippets/required_project_arguments.md +++ /dev/null @@ -1,8 +0,0 @@ -## Required project & global arguments - -The `add_global_arguments` & `add_project_arguments` functions now -support an optional keyword argument named `required`. Setting it -to `true` will cause Meson to perform compiler support checks on -each of the passed arguments as if by calling `has_argument`, which -means manual checks can now be avoided and instead expressed more -tersely. |