[PATCH] D63925: [benchmark] Disable CMake get_git_version

Andrew Ng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 1 04:10:52 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rGd74f2d0a8609: [benchmark] Disable CMake get_git_version (authored by andrewng).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D63925/new/

https://reviews.llvm.org/D63925

Files:
  llvm/utils/benchmark/CMakeLists.txt
  llvm/utils/benchmark/README.LLVM


Index: llvm/utils/benchmark/README.LLVM
===================================================================
--- llvm/utils/benchmark/README.LLVM
+++ llvm/utils/benchmark/README.LLVM
@@ -21,3 +21,5 @@
   is applied to fix building with MinGW headers for ARM
 * https://github.com/google/benchmark/commit/a9b31c51b1ee7ec7b31438c647123c2cbac5d956
   is applied to disable exceptions in Microsoft STL when exceptions are disabled
+* Disabled CMake get_git_version as it is meaningless for this in-tree build,
+  and hardcoded a null version
Index: llvm/utils/benchmark/CMakeLists.txt
===================================================================
--- llvm/utils/benchmark/CMakeLists.txt
+++ llvm/utils/benchmark/CMakeLists.txt
@@ -76,8 +76,11 @@
 
 
 # Read the git tags to determine the project version
-include(GetGitVersion)
-get_git_version(GIT_VERSION)
+# WARNING: This is meaningless for when the benchmark library is being built in-tree,
+# so disable it and hardcode a null version.
+# include(GetGitVersion)
+# get_git_version(GIT_VERSION)
+set(GIT_VERSION "v0.0.0")
 
 # Tell the user what versions we are using
 string(REGEX MATCH "[0-9]+\\.[0-9]+\\.[0-9]+" VERSION ${GIT_VERSION})


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63925.207259.patch
Type: text/x-patch
Size: 1194 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190701/2dc8a4a4/attachment.bin>


More information about the llvm-commits mailing list