]> granicus.if.org Git - clang/commit
[CMake] Put controversial always-recheck-revision-number behind an option.
authorJordan Rose <jordan_rose@apple.com>
Thu, 12 Sep 2013 16:17:41 +0000 (16:17 +0000)
committerJordan Rose <jordan_rose@apple.com>
Thu, 12 Sep 2013 16:17:41 +0000 (16:17 +0000)
commit17e95c8aac18cac3e040079a120b4a129975ae9d
tree7c7d783fa702970aff03688ef0fbf8ce5d9497e0
parent12981a7238e9caf0254fee1761deea48dcbcf040
[CMake] Put controversial always-recheck-revision-number behind an option.

CMake does not have the ability to perform actions before calculating
dependencies, so it can't know whether it needs to rebuild clangBasic
to update for a new revision number. CLANG_ALWAYS_CHECK_VC_REV (off by
default) will cause clangBasic to always be dirty by deleting the
generated SVNVersion.inc after use; otherwise, SVNVersion.inc will
always be updated, but only included in the final binary when clangBasic
is rebuilt.

It'd be great to find a better way to do this, but hopefully this is
still an improvement over the complete lack of version information before.

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