Make LLVM_APPEND_VC_REV=OFF affect clang, lld, and lldb as well.
authorNico Weber <thakis@chromium.org>
Fri, 17 Jan 2020 00:04:08 +0000 (19:04 -0500)
committerNico Weber <thakis@chromium.org>
Fri, 17 Jan 2020 00:04:08 +0000 (19:04 -0500)
commitfb5fafb23cc2d8613f8be2487afe94d8594a88ce
tree39b2c6b2ad8128211f5110164fe8fbf8fd8bf661
parent933b4212566b421191581ed6945d4ec131cc1366
Make LLVM_APPEND_VC_REV=OFF affect clang, lld, and lldb as well.

When LLVM_APPEND_VC_REV=OFF is set, the current git hash is no
longer embedded into binaries (mostly for --version output).
Without it, most binaries need to relink after every single
commit, even if they didn't change otherwise (due to, say,
a documentation-only commit).

LLVM_APPEND_VC_REV is ON by default, so this doesn't change the
default behavior of anything.

With this, all clients of GenerateVersionFromVCS.cmake honor
LLVM_APPEND_VC_REV.

Differential Revision: https://reviews.llvm.org/D72855
clang/lib/Basic/CMakeLists.txt
lld/Common/CMakeLists.txt
lldb/source/CMakeLists.txt
llvm/cmake/modules/LLVMConfig.cmake.in
llvm/docs/CMake.rst