Support default_options in dependency() fallbacks.

pull/1260/head
Jussi Pakkanen 8 years ago
parent d716d53b32
commit d94f64ded1
  1. 7
      mesonbuild/interpreter.py

@ -1798,7 +1798,12 @@ requirements use the version keyword argument instead.''')
dirname, varname = self.get_subproject_infos(kwargs)
# Try to execute the subproject
try:
self.do_subproject(dirname, {})
sp_kwargs = {}
try:
sp_kwargs['default_options'] = kwargs['default_options']
except KeyError:
pass
self.do_subproject(dirname, sp_kwargs)
# Invalid code is always an error
except InvalidCode:
raise

Loading…
Cancel
Save