Tries to address https://bugs.llvm.org/show_bug.cgi?id=35245
The cmake macro llvm_map_components_to_libnames is advertised in llvm/docs/CMake.rst
But it does not work on archlinux, where LLVM is compiled with LLVM_LINK_LLVM_DYLIB=ON
In that case there are no targets LLVMCore, LLVMEngine, etc..., instead we must link to the "LLVM" target
Else it errors with these kind of errors:
/usr/bin/ld: cannot find -lLLVMCore: No such file or directory
Is even llvm_map_components_to_libnames still relevant these days ?