mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 20:39:47 +00:00
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
This commit is contained in:
parent
6bae49b565
commit
6be5d5bda8
@ -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
|
||||
|
@ -272,7 +272,7 @@ LLVM-specific variables
|
||||
Generate build targets for the LLVM benchmarks. Defaults to ON.
|
||||
|
||||
**LLVM_APPEND_VC_REV**:BOOL
|
||||
Embed version control revision info (svn revision number or Git revision id).
|
||||
Embed version control revision info (Git revision id).
|
||||
The version info is provided by the ``LLVM_REVISION`` macro in
|
||||
``llvm/include/llvm/Support/VCSRevision.h``. Developers using git who don't
|
||||
need revision info can disable this option to avoid re-linking most binaries
|
||||
|
Loading…
Reference in New Issue
Block a user