]> granicus.if.org Git - clang/commit
[CMake] Unify scripts for generating VCS headers
authorPetr Hosek <phosek@chromium.org>
Thu, 31 Jan 2019 06:21:01 +0000 (06:21 +0000)
committerPetr Hosek <phosek@chromium.org>
Thu, 31 Jan 2019 06:21:01 +0000 (06:21 +0000)
commit9b89e1cf95c5eaee1ac48cbc0651c951150407a0
tree1e373c64b5aea7f3efef7f686ffea4ee64da8ea7
parentb8120e9866e32a7748b963f3f5f7759351b47f51
[CMake] Unify scripts for generating VCS headers

Previously, there were two different scripts for generating VCS headers:
one used by LLVM and one used by Clang. They were both similar, but
different. They were both broken in their own ways, for example the one
used by Clang didn't properly handle monorepo resulting in an incorrect
version information reported by Clang.

This change unifies two the scripts by introducing a new script that's
used from both LLVM and Clang, ensures that the new script supports both
monorepo and standalone SVN and Git setups, and removes the old scripts.

Differential Revision: https://reviews.llvm.org/D57063

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@352729 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/CMakeLists.txt
lib/Basic/Version.cpp