[PATCH] D35533: [Basic] Update CMakeLists.txt to handle Repo

MinSeong Kim via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 18 00:54:01 PDT 2017

minseong.kim created this revision.
Herald added a subscriber: mgorny.

When repo is used, '--version' option does not display correct version
information (i.e. Git hashes). This change makes the parsing of the
version info correctly recognise svn, git, git-svn and repo. This
in turn enables the option displays correct version information with
repo. Tested with git, svn and repo with this patch.



Index: lib/Basic/CMakeLists.txt
--- lib/Basic/CMakeLists.txt
+++ lib/Basic/CMakeLists.txt
@@ -34,6 +34,7 @@
     "${git_path}/logs/HEAD"  # Git or Git submodule
     "${path}/.svn/wc.db"     # SVN 1.7
     "${path}/.svn/entries"   # SVN 1.6
+    "${path}/.git/HEAD"      # Repo

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35533.107026.patch
Type: text/x-patch
Size: 367 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170718/7bf03c62/attachment.bin>

More information about the cfe-commits mailing list