RTEMS | waf: Invalidate build on configuration change (!1093)
SHIVAM DEOLANKAR (@D3athSkulll)
gitlab at rtems.org
Sat Mar 7 20:19:34 UTC 2026
SHIVAM DEOLANKAR commented on a discussion: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1093#note_144761
I investigated the dependency tracking as suggested. It appears that switching RTEMS_SMP regenerates cpukit/include/rtems/score/cpuopts.h, but this header was not tracked as a dependency for compilation tasks. As a result, object files built with the previous configuration were reused, which caused the linker errors.
I updated the build rules to include cpuopts.h as an explicit dependency for the compilation tasks. This ensures that when cpuopts.h changes (e.g., due to RTEMS_SMP toggling), the affected objects are rebuilt.
I tested the change by switching between RTEMS_SMP=False and RTEMS_SMP=True multiple times without running ./waf clean. The build now correctly recompiles the affected objects and completes successfully.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1093#note_144761
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/20260307/ada8b170/attachment.htm>
More information about the bugs
mailing list