Add SVN version to libLLVMLTO
authorMehdi Amini <mehdi.amini@apple.com>
Sat, 16 Apr 2016 07:33:14 +0000 (07:33 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Sat, 16 Apr 2016 07:33:14 +0000 (07:33 +0000)
commit1d30fcaccf6886190d635304cfa120fdf4b938ff
treeb9852755d98fa9a4a35d10d848a0556627238b2f
parent4e0cc9e0fde93dc2537ce762e82dd5e8811d76aa
Add SVN version to libLLVMLTO

Summary: For Incremental LTO, we need to make sure that an old
cache entry is not used when incrementally re-linking with a new
libLTO.
Adding a global LLVM_REVISION in llvm-config.h would for to
rebuild/relink the world for every "git pull"/"svn update".
So instead only libLTO is made dependent on the VCS and will
be rebuilt (and the dependent binaries relinked, i.e. as of
today: libLTO.dylib and llvm-lto).

Reviewers: beanz

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D18987

From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 266523
llvm/cmake/modules/GenerateVersionFromCVS.cmake [new file with mode: 0644]
llvm/cmake/modules/VersionFromVCS.cmake
llvm/lib/LTO/CMakeLists.txt