msubprojects: catch exceptions and continue with others

If the command fails for one subproject we should still continue with
others. Failed subprojects are reported at the end.

This issue became more problematic when doing parallel tasks because the
reason the command fails was completely hidden by other parallel tasks.
pull/8038/head
Xavier Claessens 4 years ago committed by Daniel Mensinger
parent 9afd589c8b
commit 2379fc72bc
  1. 6
      mesonbuild/msubprojects.py

@ -70,7 +70,11 @@ class Runner:
def run(self):
self.logger.start(self.wrap.name)
result = self.run_method()
try:
result = self.run_method()
except MesonException as e:
self.log(mlog.red('Error:'), str(e))
result = False
self.logger.done(self.wrap.name, self.log_queue)
return result

Loading…
Cancel
Save