[all-commits] [llvm/llvm-project] fb5faf: Make LLVM_APPEND_VC_REV=OFF affect clang, lld, and...

Nico Weber via All-commits all-commits at lists.llvm.org
Thu Jan 16 16:04:32 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: fb5fafb23cc2d8613f8be2487afe94d8594a88ce
      https://github.com/llvm/llvm-project/commit/fb5fafb23cc2d8613f8be2487afe94d8594a88ce
  Author: Nico Weber <thakis at chromium.org>
  Date:   2020-01-16 (Thu, 16 Jan 2020)

  Changed paths:
    M clang/lib/Basic/CMakeLists.txt
    M lld/Common/CMakeLists.txt
    M lldb/source/CMakeLists.txt
    M llvm/cmake/modules/LLVMConfig.cmake.in
    M llvm/docs/CMake.rst

  Log Message:
  -----------
  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




More information about the All-commits mailing list