-
Notifications
You must be signed in to change notification settings - Fork 440
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade Google Benchmark to latest v1.5.3 in git submodule and for CM…
…ake-vcpkg build on Windows (#748)
- Loading branch information
Showing
4 changed files
with
45 additions
and
10 deletions.
There are no files selected for viewing
Submodule benchmark
updated
34 files
+30 −0 | .github/workflows/bazel.yml | |
+2 −0 | AUTHORS | |
+1 −0 | CMakeLists.txt | |
+5 −0 | CONTRIBUTORS | |
+28 −4 | README.md | |
+15 −0 | WORKSPACE | |
+3 −1 | bindings/python/google_benchmark/__init__.py | |
+2 −1 | bindings/python/google_benchmark/benchmark.cc | |
+2 −2 | cmake/benchmark.pc.in | |
+0 −7 | conan/CMakeLists.txt | |
+0 −10 | conan/test_package/CMakeLists.txt | |
+0 −19 | conan/test_package/conanfile.py | |
+0 −18 | conan/test_package/test_package.cpp | |
+0 −79 | conanfile.py | |
+35 −14 | include/benchmark/benchmark.h | |
+2 −0 | requirements.txt | |
+1 −1 | src/benchmark.cc | |
+5 −0 | src/benchmark_register.cc | |
+2 −1 | src/benchmark_register.h | |
+5 −3 | src/benchmark_runner.cc | |
+18 −3 | src/cycleclock.h | |
+9 −1 | src/internal_macros.h | |
+16 −0 | src/sleep.cc | |
+24 −10 | src/sysinfo.cc | |
+12 −3 | src/timers.cc | |
+18 −3 | test/basic_test.cc | |
+6 −0 | test/benchmark_gtest.cc | |
+8 −6 | test/fixture_test.cc | |
+1 −0 | test/options_test.cc | |
+5 −0 | test/output_test_helper.cc | |
+112 −1 | test/reporter_output_test.cc | |
+19 −0 | tools/BUILD.bazel | |
+16 −3 | tools/compare.py | |
+491 −129 | tools/gbench/report.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Source: benchmark | ||
Version: 1.5.1 | ||
Version: 1.5.3 | ||
Homepage: https://github.com/google/benchmark | ||
Description: A library to support the benchmarking of functions, similar to unit-tests. | ||
Supports: !uwp | ||
Supports: !(arm|uwp) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 1007254..47e4a1b 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -78,8 +78,9 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") | ||
|
||
|
||
# Read the git tags to determine the project version | ||
-include(GetGitVersion) | ||
-get_git_version(GIT_VERSION) | ||
+# include(GetGitVersion) | ||
+# get_git_version(GIT_VERSION) | ||
+set(GIT_VERSION 1.5.3) | ||
|
||
# Tell the user what versions we are using | ||
string(REGEX MATCH "[0-9]+\\.[0-9]+\\.[0-9]+" VERSION ${GIT_VERSION}) | ||
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt | ||
index 35d559e..e9dec6d 100644 | ||
--- a/src/CMakeLists.txt | ||
+++ b/src/CMakeLists.txt | ||
@@ -77,9 +77,13 @@ set(targets_export_name "${PROJECT_NAME}Targets") | ||
set(namespace "${PROJECT_NAME}::") | ||
|
||
include(CMakePackageConfigHelpers) | ||
+# Avoid architecture compatibility check | ||
+set(DOCTEST_SIZEOF_VOID_P ${CMAKE_SIZEOF_VOID_P}) | ||
+unset(CMAKE_SIZEOF_VOID_P) | ||
write_basic_package_version_file( | ||
"${version_config}" VERSION ${GENERIC_LIB_VERSION} COMPATIBILITY SameMajorVersion | ||
) | ||
+set(CMAKE_SIZEOF_VOID_P ${DOCTEST_SIZEOF_VOID_P}) | ||
|
||
configure_file("${PROJECT_SOURCE_DIR}/cmake/Config.cmake.in" "${project_config}" @ONLY) | ||
configure_file("${PROJECT_SOURCE_DIR}/cmake/benchmark.pc.in" "${pkg_config}" @ONLY) |