RTEMS | waf: Track cpuopts.h as compilation dependency (!1093)
Sebastian Huber (@sebhub)
gitlab at rtems.org
Mon Mar 9 00:31:50 UTC 2026
Sebastian Huber started a new discussion on wscript: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1093#note_144850
> 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")
Header file dependencies should be provided automatically by the extension `gccdeps.py`. If this doesn't work here, then maybe there is an issue with the rule definition or the interaction with the `gccdeps.py` is not working properly. I don't know how the plugin works.
In general, such hard coded dependencies shouldn't be added to a general rule. If it is not possible to fix the automatic header file dependency tracking, then we should add the hard coded `cpukit/include/rtems/score/cpuopts.h` dependency to the caller side using the already available `deps` parameter.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1093#note_144850
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/20260309/2550d012/attachment.htm>
More information about the bugs
mailing list