From be087b6804b26789666498f303b8e6a40767bd42 Mon Sep 17 00:00:00 2001 From: MonicaLiu <110024546+MonicaLiu0311@users.noreply.github.com> Date: Fri, 26 Jul 2024 00:11:21 -0700 Subject: [PATCH] [benchmark] Update to 1.8.4 (#38916) Co-authored-by: Monica --- ports/benchmark/fix_qnx.patch | 15 --------------- ports/benchmark/portfile.cmake | 6 ++---- ports/benchmark/vcpkg.json | 3 +-- scripts/ci.baseline.txt | 1 + versions/b-/benchmark.json | 5 +++++ versions/baseline.json | 4 ++-- 6 files changed, 11 insertions(+), 23 deletions(-) delete mode 100644 ports/benchmark/fix_qnx.patch diff --git a/ports/benchmark/fix_qnx.patch b/ports/benchmark/fix_qnx.patch deleted file mode 100644 index 79d6ae8df8..0000000000 --- a/ports/benchmark/fix_qnx.patch +++ /dev/null @@ -1,15 +0,0 @@ -diff --git a/src/sysinfo.cc b/src/sysinfo.cc -index 922e83a..ec9fd35 100644 ---- a/src/sysinfo.cc -+++ b/src/sysinfo.cc -@@ -771,8 +771,8 @@ double GetCPUCyclesPerSecond(CPUInfo::Scaling scaling) { - kstat_close(kc); - return clock_hz; - #elif defined(BENCHMARK_OS_QNX) -- return static_cast((int64_t)(SYSPAGE_ENTRY(cpuinfo)->speed) * -- (int64_t)(1000 * 1000)); -+ return static_cast(static_cast(SYSPAGE_ENTRY(cpuinfo)->speed) * -+ static_cast(1000 * 1000)); - #elif defined(BENCHMARK_OS_QURT) - // QuRT doesn't provide any API to query Hexagon frequency. - return 1000000000; diff --git a/ports/benchmark/portfile.cmake b/ports/benchmark/portfile.cmake index 1411491a35..c4929c7950 100644 --- a/ports/benchmark/portfile.cmake +++ b/ports/benchmark/portfile.cmake @@ -2,10 +2,8 @@ vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO google/benchmark REF "v${VERSION}" - SHA512 4e12114251c79a426873cfba6e27270b69fc980cef9a68e9cb3170f8e2e203f77dee19ab1e65cad51cd67e60991d3bbfdd52553f22522ce5e6c611b5aa07602c + SHA512 835d12b88fe52309ce6b2ffbc8b3c178ac594be7d249b5daca0373d1d03ec83ea3c7b94224f67f22d21919376985867eeff0d1c0721501cfd8a9e9b8a9c48882 HEAD_REF main - PATCHES - fix_qnx.patch ) vcpkg_cmake_configure( @@ -27,4 +25,4 @@ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") # Handle copyright -file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/ports/benchmark/vcpkg.json b/ports/benchmark/vcpkg.json index ed3d100591..eaf6e196b5 100644 --- a/ports/benchmark/vcpkg.json +++ b/ports/benchmark/vcpkg.json @@ -1,8 +1,7 @@ { "$comment": "https://github.com/google/benchmark/issues/661 describes the missing UWP support upstream", "name": "benchmark", - "version-semver": "1.8.3", - "port-version": 3, + "version-semver": "1.8.4", "description": "A library to benchmark code snippets, similar to unit tests.", "homepage": "https://github.com/google/benchmark", "license": "Apache-2.0", diff --git a/scripts/ci.baseline.txt b/scripts/ci.baseline.txt index f34473b89c..69927efa99 100644 --- a/scripts/ci.baseline.txt +++ b/scripts/ci.baseline.txt @@ -83,6 +83,7 @@ bde:x64-windows-static-md =skip bde:x64-windows-static =skip bde:x64-windows =skip bde:x86-windows =skip +benchmark:arm-neon-android=fail bento4:arm-neon-android=fail berkeleydb:arm-neon-android=fail berkeleydb:arm64-android=fail diff --git a/versions/b-/benchmark.json b/versions/b-/benchmark.json index 677c59fe22..6f1c839cb4 100644 --- a/versions/b-/benchmark.json +++ b/versions/b-/benchmark.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "8251c2dbb2913d8128fa08cd98f375c14c329cbf", + "version-semver": "1.8.4", + "port-version": 0 + }, { "git-tree": "7d03a7d3688cd7480d28584a4ca4677fe90f3226", "version-semver": "1.8.3", diff --git a/versions/baseline.json b/versions/baseline.json index 4751598ded..2b4b2f61e2 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -581,8 +581,8 @@ "port-version": 0 }, "benchmark": { - "baseline": "1.8.3", - "port-version": 3 + "baseline": "1.8.4", + "port-version": 0 }, "bento4": { "baseline": "1.6.0-641",