<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr"><div>Looks good. A welcome improvement for anyone working on the build system.</div><div><br></div><div>Kinsey<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 6, 2023 at 9:40 AM Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de">sebastian.huber@embedded-brains.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">This helps to identify issues in build items.<br>
---<br>
wscript | 14 ++++++++++++--<br>
1 file changed, 12 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/wscript b/wscript<br>
index a34cac51e2..567f42db2f 100755<br>
--- a/wscript<br>
+++ b/wscript<br>
@@ -214,14 +214,24 @@ class Item(object):<br>
self.prepare_configure(conf, cic)<br>
for p in self.links():<br>
p.configure(conf, cic)<br>
- self.do_configure(conf, cic)<br>
+ try:<br>
+ self.do_configure(conf, cic)<br>
+ except Exception as e:<br>
+ raise type(e)(<br>
+ "Configuration error related to item spec:{}: {}".format(<br>
+ self.uid, str(e)))<br>
<br>
def build(self, bld, bic):<br>
if _is_enabled(bld.env.ENABLE, self.get_enabled_by()):<br>
bic = self.prepare_build(bld, bic)<br>
for p in self.links():<br>
p.build(bld, bic)<br>
- self.do_build(bld, bic)<br>
+ try:<br>
+ self.do_build(bld, bic)<br>
+ except Exception as e:<br>
+ raise type(e)(<br>
+ "Build error related to item spec:{}: {}".format(<br>
+ self.uid, str(e)))<br>
<br>
def do_defaults(self, enabled):<br>
return<br>
-- <br>
2.35.3<br>
<br>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
</blockquote></div>