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/9285/head
Xavier Claessens 3 years ago committed by Nirbheek Chauhan
parent 3868e833fc
commit 5fe6047b76
  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