diff options
author | Laurin-Luis Lehning <65224843+e820@users.noreply.github.com> | 2021-06-17 21:02:51 +0200 |
---|---|---|
committer | Laurin-Luis Lehning <65224843+e820@users.noreply.github.com> | 2021-06-21 09:15:13 +0200 |
commit | c9ad98ef5ef8dd1931735f07015bf8ad199cd456 (patch) | |
tree | 1ab6dc7bb0e2f8c1ef43f60129f3b35039544d76 /docs | |
parent | 2e8729a7e6cee460f8e75e231ecdd01933fbd277 (diff) | |
download | meson-c9ad98ef5ef8dd1931735f07015bf8ad199cd456.zip meson-c9ad98ef5ef8dd1931735f07015bf8ad199cd456.tar.gz meson-c9ad98ef5ef8dd1931735f07015bf8ad199cd456.tar.bz2 |
interprter: Add required kwarg to add_(project|global)_arguments
To avoid manual compiler support checks add_project_arguments and
add_global_arguments receive a new keyword argument to perform
them automatically.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/markdown/snippets/required_project_arguments.md | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/markdown/snippets/required_project_arguments.md b/docs/markdown/snippets/required_project_arguments.md new file mode 100644 index 0000000..e5dae70 --- /dev/null +++ b/docs/markdown/snippets/required_project_arguments.md @@ -0,0 +1,8 @@ +# 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. |