In that revision, I make LLD match Clang in deprecating llvm-config.
This patch isn't to worthwhile on its own --- there isn't a sense in
which the new order is "better" in isolation --- but by putting the
steps that LLD also neeeds to do first, I make the diff between LLD and
Clang's top-level CMakeLists.txt very legible.
Longer term I hope:
- We can remove calling llvm-config altogether, and just go strait to finding the CMake config file. This is what Flang does, at least.
- Hopefully the diffable part is smaller then --- i.e. there is less duplicated boilerplate.
- Any duplicate boilerplate that remains can be factored out.
I didn't both trying to factor anything out in e.g. the top level common
CMake Utility modules because this deprecated-but-not-removed state is a
merely transitional.