summaryrefslogtreecommitdiffstats
path: root/llvm/cmake/modules
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2020-01-16 19:04:08 -0500
committerTom Stellard <tstellar@redhat.com>2020-06-23 14:35:35 -0700
commit0777c907268a8197de102f3770432b0f185de30a (patch)
tree38d900d421014da7d9593dd87f85938f1699e1e7 /llvm/cmake/modules
parent97065683c6a965be9bc3dc06b0264940ed75c4af (diff)
downloadbcm5719-llvm-0777c907268a8197de102f3770432b0f185de30a.tar.gz
bcm5719-llvm-0777c907268a8197de102f3770432b0f185de30a.zip
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)
Diffstat (limited to 'llvm/cmake/modules')
-rw-r--r--llvm/cmake/modules/LLVMConfig.cmake.in2
1 files changed, 2 insertions, 0 deletions
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
OpenPOWER on IntegriCloud