When building LLVM with LLVM_BUILD_TOOLS as OFF, numerous tools such as llvm-ar or llvm-objcopy end up still being built. The reason for this is that the symlink targets are unconditionally included in a Build-all build, causing the tool they're symlinking to be built after all.
This patch changes that behaviour to be more intuative by only including including the symlink in a Build-all build if the target they're linking to is also included.
Before committing, could you add a TODO comment to switch this to use a generator expression once our minimum required CMake version is >= 3.19?