Clang may be built in an environment where Git is not available. In our case,
Clang is part of a larger monorepo which is not Git-based, and
GenerateVersionFromVCS was not able to get source info.
Provide options to pass in repo and revision info from cmake.
cmake \ -DCLANG_VC_REPOSITORY=abc://repo.url.com \ -DCLANG_VC_REVISION=abcd1234 \ ...
This would allow us to prepare the source info beforehand and pass it to the
clang binary.
I imagine you do not need it, but maybe LLVM should have the same changes? There's a for loop in GenerateVersionFromVCS.cmake that is already going to try to look into LLVM_VC_REPOSITORY/REVISION.