diff options
author | Salamandar <felix@piedallu.me> | 2018-04-27 17:26:07 +0200 |
---|---|---|
committer | Salamandar <felix@piedallu.me> | 2018-06-01 14:23:24 +0200 |
commit | 364b8a37b9da0a0b318f4c60be67f37dfa51a295 (patch) | |
tree | a3f6a12548be3416c151fe377f71f02a0db216a6 /mesonbuild/optinterpreter.py | |
parent | c90885de6d92ed0ffea286f11337346129ca0a35 (diff) | |
download | meson-364b8a37b9da0a0b318f4c60be67f37dfa51a295.zip meson-364b8a37b9da0a0b318f4c60be67f37dfa51a295.tar.gz meson-364b8a37b9da0a0b318f4c60be67f37dfa51a295.tar.bz2 |
Add 0.45.0 features
Diffstat (limited to 'mesonbuild/optinterpreter.py')
-rw-r--r-- | mesonbuild/optinterpreter.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mesonbuild/optinterpreter.py b/mesonbuild/optinterpreter.py index e5ecc6f..3da5dad 100644 --- a/mesonbuild/optinterpreter.py +++ b/mesonbuild/optinterpreter.py @@ -231,6 +231,10 @@ class OptionInterpreter: if func_name != 'option': 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() + if 'type' not in kwargs: raise OptionException('Option call missing mandatory "type" keyword argument') opt_type = kwargs.pop('type') |