interpreter: Add missing FeatureNewKwarg for allow_fallback

pull/8865/head
Xavier Claessens 4 years ago committed by Daniel Mensinger
parent 8255100485
commit 5a5ab79078
  1. 2
      mesonbuild/interpreter/interpreter.py

@ -1574,6 +1574,7 @@ external dependencies (including libraries) must go to "dependencies".''')
# When adding kwargs, please check if they make sense in dependencies.get_dep_identifier()
@FeatureNewKwargs('dependency', '0.57.0', ['cmake_package_version'])
@FeatureNewKwargs('dependency', '0.56.0', ['allow_fallback'])
@FeatureNewKwargs('dependency', '0.54.0', ['components'])
@FeatureNewKwargs('dependency', '0.52.0', ['include_type'])
@FeatureNewKwargs('dependency', '0.50.0', ['not_found_message', 'cmake_module_path', 'cmake_args'])
@ -1628,7 +1629,6 @@ external dependencies (including libraries) must go to "dependencies".''')
fallback = kwargs.get('fallback', None)
allow_fallback = kwargs.get('allow_fallback', None)
if allow_fallback is not None:
FeatureNew.single_use('"allow_fallback" keyword argument for dependency', '0.56.0', self.subproject)
if fallback is not None:
raise InvalidArguments('"fallback" and "allow_fallback" arguments are mutually exclusive')
if not isinstance(allow_fallback, bool):

Loading…
Cancel
Save