diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2023-03-06 16:37:06 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2023-03-06 16:37:06 +0100 |
commit | 3612dc7d61d91e0bc121b2d226a1b3082ff9e333 (patch) | |
tree | 7065fa00456b05a1a84bb8b65f67eee193bb3e34 /wscript | |
parent | bsps/riscv: Use medany cmodel for 64-bit variants (diff) | |
download | rtems-3612dc7d61d91e0bc121b2d226a1b3082ff9e333.tar.bz2 |
build: Print item UID in case of errors
This helps to identify issues in build items.
Diffstat (limited to 'wscript')
-rwxr-xr-x | wscript | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -214,14 +214,24 @@ class Item(object): self.prepare_configure(conf, cic) for p in self.links(): p.configure(conf, cic) - self.do_configure(conf, cic) + try: + self.do_configure(conf, cic) + except Exception as e: + raise type(e)( + "Configuration error related to item spec:{}: {}".format( + self.uid, str(e))) def build(self, bld, bic): if _is_enabled(bld.env.ENABLE, self.get_enabled_by()): bic = self.prepare_build(bld, bic) for p in self.links(): p.build(bld, bic) - self.do_build(bld, bic) + try: + self.do_build(bld, bic) + except Exception as e: + raise type(e)( + "Build error related to item spec:{}: {}".format( + self.uid, str(e))) def do_defaults(self, enabled): return |