Some build systems such as Ninja sets -fdiagnostics-color to Clang
command line so that errors are displayed in color. However, linker
errors were displayed without color because the compiler driver
didn't pass that parameter to linkers.
This is a patch to set -color-diagnostics=all if a linker is LLD.
LLD supports that option and displays errors in color.
I'm not totally sure if this is the right place to add new code,
but it seems we have many copy-and-pasted code to construct a linker
command line in this file, and if I fixed each of them, I'd have had
to update more than 10 locations.
Yes, this doesn't seem like exactly the right place, but maybe there is no better one. Perhaps we could add an "addCommonLinkerFlags" function?