Deleted or non selected source files are linked in #16942
Labels
Area: build system
Area: Build system
Type: bug
The issue reports a bug / The PR fixes a bug (including spelling errors)
Description
This might also occur in other cases but for example when a
MODULE
has different implementations which are selected vía aPSEUDOMODULE
or whenSRC
file selection changes the old files are still linked in which leads to either bloated code to compilation errors. This was introduced with #14754 where object files started to be linked instead on relying on archives, archives were always recreated so this was not an issue before #14754RIOT/Makefile.base
Lines 95 to 98 in c1ad435
Steps to reproduce the issue
This can be done in any case where SRC or PSEUDOMODULES are selected/deselected. An example that worked at the time of #14754:
Expected results
Only new files are linked in.
Actual results
Old and new files are linked in.
Versions
2021.10
The text was updated successfully, but these errors were encountered: