Skip to content

Hadrian: remove superfluous dependencies in Rules.Compile

Each package's object files were 'need'ing the library files of all transitive dependencies of the current package, whichi is pointless since the said libraries are not needed until we link those object files together.

This fixes #16759 (closed).

In contrast to the "re-build logs" from #16759 (closed), we can this that this patch minimizes the amount of work that we do when we change the RTS: https://gist.github.com/alpmestan/761006557c4407fe6fee32f8bb1a5846

@mpickering Perhaps you want to try this out?

Merge request reports