From 0777c907268a8197de102f3770432b0f185de30a Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Thu, 16 Jan 2020 19:04:08 -0500 Subject: 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 (cherry picked from commit fb5fafb23cc2d8613f8be2487afe94d8594a88ce) --- llvm/cmake/modules/LLVMConfig.cmake.in | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/cmake/modules/LLVMConfig.cmake.in') diff --git a/llvm/cmake/modules/LLVMConfig.cmake.in b/llvm/cmake/modules/LLVMConfig.cmake.in index 082393212b6..87684ecba0f 100644 --- a/llvm/cmake/modules/LLVMConfig.cmake.in +++ b/llvm/cmake/modules/LLVMConfig.cmake.in @@ -78,6 +78,8 @@ set(LLVM_LIBDIR_SUFFIX @LLVM_LIBDIR_SUFFIX@) set(LLVM_INCLUDE_DIRS "@LLVM_CONFIG_INCLUDE_DIRS@") set(LLVM_LIBRARY_DIRS "@LLVM_CONFIG_LIBRARY_DIRS@") +set(LLVM_APPEND_VC_REV "@LLVM_APPEND_VC_REV@") + # These variables are duplicated for install tree but they have different # values for build tree. LLVM_INCLUDE_DIRS contains both source # and generated include directories while the following variables have -- cgit v1.2.3