From d5ed8f61a5cd7a5d384ccd59abc219154a00d42c Mon Sep 17 00:00:00 2001 From: Laurin-Luis Lehning <65224843+e820@users.noreply.github.com> Date: Fri, 18 Jun 2021 01:42:57 +0200 Subject: interpreter: Move argument checks from add_*_arguments to compiler.get_supported_arguments --- docs/markdown/snippets/compiler_argument_checking.md | 6 ++++++ docs/markdown/snippets/required_project_arguments.md | 8 -------- 2 files changed, 6 insertions(+), 8 deletions(-) create mode 100644 docs/markdown/snippets/compiler_argument_checking.md delete mode 100644 docs/markdown/snippets/required_project_arguments.md (limited to 'docs/markdown/snippets') 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. -- cgit v1.1