Improve support for cross-hosted builds of LLVM.