From a0ff14551266c87919f5b4b1469b7be0ef0a052e Mon Sep 17 00:00:00 2001 From: Tristan Partin Date: Wed, 24 Apr 2024 19:51:35 -0500 Subject: Add required kwarg to compiler.{compiles,links,run} This is a similar commit to the one that added required to all the compiler.has* functions. --- docs/yaml/objects/compiler.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'docs/yaml/objects') diff --git a/docs/yaml/objects/compiler.yaml b/docs/yaml/objects/compiler.yaml index c86ef7f4c..cd988a683 100644 --- a/docs/yaml/objects/compiler.yaml +++ b/docs/yaml/objects/compiler.yaml @@ -121,6 +121,16 @@ methods: - name: _compiles returns: void description: You have found a bug if you can see this! + kwargs: + required: + type: bool | feature + default: false + since: 1.5.0 + description: + When set to `true`, Meson will halt if the check fails. + + When set to a [`feature`](Build-options.md#features) option, the feature + will control if it is searched and whether to fail if not found. kwargs_inherit: - compiler._args - compiler._include_directories -- cgit v1.2.3