aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2022-02-09 18:57:09 -0500
committerEli Schwartz <eschwartz@archlinux.org>2022-02-09 21:44:46 -0500
commit6c79e97eaeb889e13a6bc0b7b405a2857f4761ae (patch)
tree98396b2a22169e623dbf9dcc8b7c6db4ec92198e /mesonbuild
parent3ca61a6aa7a21fff7a2ac1d07cde14f6beab14bc (diff)
downloadmeson-6c79e97eaeb889e13a6bc0b7b405a2857f4761ae.zip
meson-6c79e97eaeb889e13a6bc0b7b405a2857f4761ae.tar.gz
meson-6c79e97eaeb889e13a6bc0b7b405a2857f4761ae.tar.bz2
add some forgotten FeatureNew annotations
Forgotten in #8512.
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/interpreter/interpreterobjects.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/interpreter/interpreterobjects.py b/mesonbuild/interpreter/interpreterobjects.py
index 9c2481c..6b7cbcd 100644
--- a/mesonbuild/interpreter/interpreterobjects.py
+++ b/mesonbuild/interpreter/interpreterobjects.py
@@ -116,6 +116,7 @@ class FeatureOptionHolder(ObjectHolder[coredata.UserFeatureOption]):
@noPosargs
@noKwargs
+ @FeatureNew('feature_option.allowed()', '0.59.0')
def allowed_method(self, args: T.List[TYPE_var], kwargs: TYPE_kwargs) -> bool:
return self.value != 'disabled'
@@ -124,6 +125,7 @@ class FeatureOptionHolder(ObjectHolder[coredata.UserFeatureOption]):
def auto_method(self, args: T.List[TYPE_var], kwargs: TYPE_kwargs) -> bool:
return self.value == 'auto'
+ @FeatureNew('feature_option.require()', '0.59.0')
@typed_pos_args('feature_option.require', bool)
@typed_kwargs(
'feature_option.require',
@@ -140,6 +142,7 @@ class FeatureOptionHolder(ObjectHolder[coredata.UserFeatureOption]):
raise InterpreterException(err_msg)
return self.as_disabled()
+ @FeatureNew('feature_option.disable_auto_if()', '0.59.0')
@noKwargs
@typed_pos_args('feature_option.disable_auto_if', bool)
def disable_auto_if_method(self, args: T.Tuple[bool], kwargs: TYPE_kwargs) -> coredata.UserFeatureOption: