RTEMS | waf exits too early when building all BSPs at once (#5252)
Chris Johns (@chris)
gitlab at rtems.org
Thu May 29 07:37:28 UTC 2025
Chris Johns commented on a discussion: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5252#note_122982
Try:
```diff
diff --git a/wscript b/wscript
index 29f20d019d..032de3daf1 100755
--- a/wscript
+++ b/wscript
@@ -1633,10 +1633,18 @@ def append_variant_builds(bld):
UninstallContext):
name = c.__name__.replace("Context", "").lower()
- class magic(c):
+ class rtems_context(c):
cmd = name + "_" + var
variant = var
+ def compile(self):
+ try:
+ super().compile()
+ except:
+ if not self.keep:
+ raise
+ # should log the error and raise it somehow?
+
waflib.Options.commands.append(bld.cmd + "_" + var)
```
I think it would be good to have the build generate an error once all the BSPs end some how? I will leave that to you :laughing:
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5252#note_122982
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20250529/3a49344f/attachment.htm>
More information about the bugs
mailing list