diff options
Diffstat (limited to 'mesonbuild/optinterpreter.py')
-rw-r--r-- | mesonbuild/optinterpreter.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/mesonbuild/optinterpreter.py b/mesonbuild/optinterpreter.py index cd3139b..94efbcf 100644 --- a/mesonbuild/optinterpreter.py +++ b/mesonbuild/optinterpreter.py @@ -18,7 +18,6 @@ import functools from . import mparser from . import coredata from . import mesonlib -from .interpreterbase import FeatureNew from . import compilers forbidden_option_names = coredata.get_builtin_options() @@ -94,7 +93,9 @@ def IntegerParser(name, description, kwargs): kwargs['value'], kwargs.get('yield', coredata.default_yielding)) -@FeatureNew('array type option()', '0.44.0') +# FIXME: Cannot use FeatureNew while parsing options because we parse it before +# reading options in project(). See func_project() in interpreter.py +#@FeatureNew('array type option()', '0.44.0') @permitted_kwargs({'value', 'yield', 'choices'}) def string_array_parser(name, description, kwargs): if 'choices' in kwargs: @@ -188,8 +189,11 @@ class OptionInterpreter: raise OptionException('Only calls to option() are allowed in option files.') (posargs, kwargs) = self.reduce_arguments(node.args) - if 'yield' in kwargs: - FeatureNew('option yield', '0.45.0').use() + # FIXME: Cannot use FeatureNew while parsing options because we parse + # it before reading options in project(). See func_project() in + # interpreter.py + #if 'yield' in kwargs: + # FeatureNew('option yield', '0.45.0').use(self.subproject) if 'type' not in kwargs: raise OptionException('Option call missing mandatory "type" keyword argument') |