llvm.org GIT mirror llvm / 6a2f57a
[benchmark] Disable CMake get_git_version Disabled CMake get_git_version as it is meaningless for this in-tree build, and hardcoded a null version. Not using get_git_version avoids a refresh of the git index that is executed by get_git_version. Refreshing the index can take a considerable amount of time if the index needs to be refreshed (particularly with the mono repo). This situation can arise when building shared source on a host in VMs. Differential Revision: https://reviews.llvm.org/D63925 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@364742 91177308-0d34-0410-b5e6-96231b3b80d8 Andrew Ng a month ago
2 changed file(s) with 7 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
7575
7676
7777 # Read the git tags to determine the project version
78 include(GetGitVersion)
79 get_git_version(GIT_VERSION)
78 # WARNING: This is meaningless for when the benchmark library is being built in-tree,
79 # so disable it and hardcode a null version.
80 # include(GetGitVersion)
81 # get_git_version(GIT_VERSION)
82 set(GIT_VERSION "v0.0.0")
8083
8184 # Tell the user what versions we are using
8285 string(REGEX MATCH "[0-9]+\\.[0-9]+\\.[0-9]+" VERSION ${GIT_VERSION})
2020 is applied to fix building with MinGW headers for ARM
2121 * https://github.com/google/benchmark/commit/a9b31c51b1ee7ec7b31438c647123c2cbac5d956
2222 is applied to disable exceptions in Microsoft STL when exceptions are disabled
23 * Disabled CMake get_git_version as it is meaningless for this in-tree build,
24 and hardcoded a null version