[rtems commit] build: Print item UID in case of errors
Sebastian Huber
sebh at rtems.org
Tue Mar 7 05:47:28 UTC 2023
Module: rtems
Branch: master
Commit: 3612dc7d61d91e0bc121b2d226a1b3082ff9e333
Changeset: http://git.rtems.org/rtems/commit/?id=3612dc7d61d91e0bc121b2d226a1b3082ff9e333
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Mon Mar 6 16:37:06 2023 +0100
build: Print item UID in case of errors
This helps to identify issues in build items.
---
wscript | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/wscript b/wscript
index a34cac51e2..567f42db2f 100755
--- a/wscript
+++ b/wscript
@@ -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
More information about the vc
mailing list