Revert "build: don't add targets to link_whole_targets if we took their objects"
Revert "build: don't add targets to link_whole_targets if we took their objects"

This reverts commit c94c492089e7fecb56b7cc11ea76712a770f1e34.

This broke propagated deps as well as PCH in MSVC, and has not been
fixed in time for the final release of 0.64.0, so it needs to be
reverted and then brought back later.

Fixes #10745
Fixes #10975

mesonbuild/meson,mesonbuild/meson,mesonbuild/meson,mesonbuild/meson,mesonbuild/meson,mesonbuild/meson,mesonbuild/meson,mesonbuild/meson,mesonbuild/meson,mesonbuild/meson