Skip to content

Upgrade vendored GoogleTest to 1.18.0 - #3475

Draft
SteveBronder wants to merge 1 commit into
cmake-mathfrom
update/googletest-1.18.0
Draft

SteveBronder wants to merge 1 commit into
cmake-mathfrom
update/googletest-1.18.0

Conversation

@SteveBronder

Copy link
Copy Markdown
Collaborator

Upgrade the GoogleTest nested in lib/benchmark_1.5.1 to v1.18.0, preserving Stan's MPI initialization and the existing dependency paths. Pin the maintenance script to that release, verify the license copy, and remove the temporary CMake policy override; the release declares CMake 3.16 and C++17.

This draft is stacked on #3463 with cmake-math as its base so the dependency upgrade stays separate from the CI repairs. Retarget and rebase onto develop after #3463 merges.

Validation:

  • CMake builds with GCC 9 and Clang 10, plus CMake 4 with GCC 9: 60 runtime cases each, including 55 typed ODE cases; XML reports verified.
  • Make builds with GCC 9 and Clang 10: all 55 typed ODE cases and XML reports passed.
  • Two-rank MPI startup and communication: all four cases and XML reports passed.
  • Windows ARM64 and x64 with Clang 19.1.7: GoogleTest static libraries, PCH producers, Stan MPI-aware main, and test sources compiled successfully.

The full native CI compiler matrix must pass before merging.

Replace the GoogleTest nested under Google Benchmark 1.5.1 with the pinned
v1.18.0 release. Preserve Stan MPI initialization and the existing library
paths. Pin the maintenance script to the same release and verify its
license copy against the release.

Remove the temporary CMake policy-minimum wrapper now that GoogleTest
declares CMake 3.16 and C++17, matching the project setup.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants