Skip to content

Update GTest CMake for use w/ sanitizers#210

Merged
derobins merged 3 commits intodevelopfrom
derobins/sanitizers
Mar 5, 2026
Merged

Update GTest CMake for use w/ sanitizers#210
derobins merged 3 commits intodevelopfrom
derobins/sanitizers

Conversation

@derobins
Copy link
Collaborator

@derobins derobins commented Mar 5, 2026

Ensure that GoogleTest is fetched and built from source with the same flags as the library when building with the sanitizers enabled. Without this, we don't see useful output when there are failures.

Part of AIHIPFILE-62

Ensure that GoogleTest is fetched and built from source with the same
flags as the library when building with the sanitizers enabled.
Without this, we don't see useful output when there are failures.
Copilot AI review requested due to automatic review settings March 5, 2026 17:37
@derobins
Copy link
Collaborator Author

derobins commented Mar 5, 2026

@copilot please review

Copy link

Copilot AI commented Mar 5, 2026

@derobins I've opened a new pull request, #211, to work on those changes. Once the pull request is ready, I'll request review from you.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the CMake GoogleTest integration so sanitizer builds always compile GoogleTest from source with matching flags, improving sanitizer diagnostics and failure output.

Changes:

  • Conditionally disables system find_package(GTest) fallback when AIS_USE_SANITIZERS is enabled.
  • Standardizes cache option descriptions and status messages for “GoogleTest”.
  • Fixes the “fetched vs system” detection to key off googletest_SOURCE_DIR.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@derobins derobins merged commit 1bdd004 into develop Mar 5, 2026
40 of 42 checks passed
@derobins derobins deleted the derobins/sanitizers branch March 5, 2026 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants