Allow fallback in nodownload mode

It is possible that the subproject has been downloaded already, in that
case there is no reason to not use it. If the subproject has not been
downlaoded already it will fail do_subproject().
pull/4663/head
Xavier Claessens 6 years ago committed by Jussi Pakkanen
parent f126f43c4f
commit 47b9c1a564
  1. 2
      mesonbuild/interpreter.py

@ -3075,7 +3075,7 @@ external dependencies (including libraries) must go to "dependencies".''')
def dependency_fallback(self, name, kwargs):
display_name = name if name else '(anonymous)'
if self.coredata.get_builtin_option('wrap_mode') in (WrapMode.nofallback, WrapMode.nodownload):
if self.coredata.get_builtin_option('wrap_mode') == WrapMode.nofallback:
mlog.log('Not looking for a fallback subproject for the dependency',
mlog.bold(display_name), 'because:\nUse of fallback'
'dependencies is disabled.')

Loading…
Cancel
Save