RTEMS | waf: Track cpuopts.h as compilation dependency (!1093)
SHIVAM DEOLANKAR (@D3athSkulll)
gitlab at rtems.org
Tue Mar 10 16:45:06 UTC 2026
SHIVAM DEOLANKAR commented on a discussion on wscript: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1093#note_144961
> def cc(self, bld, bic, source, target=None, deps=[], cppflags=[]):
> if target is None:
> target = os.path.splitext(source)[0] + ".o"
> +
> + cpuopts = bld.bldnode.make_node("cpukit/include/rtems/score/cpuopts.h")
Thank you for the clarification. The `cpuopts.h` dependency was added to confirm that the linker errors were caused by stale objects when `cpuopts.h` changes after toggling `RTEMS_SMP`.
I agree that hard-coding this dependency in the generic `cc()` rule is not appropriate. Since header dependencies should normally be detected automatically via `gccdeps.py`, I will investigate why `cpuopts.h` is not being tracked and whether the custom rule definition interferes with dependency scanning.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1093#note_144961
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/20260310/da6e6d38/attachment.htm>
More information about the bugs
mailing list