Skip to content

Allow building tests without benchmarks #545

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

musicinmybrain
Copy link

@musicinmybrain musicinmybrain commented Jun 15, 2025

This PR adds a RE2_BUILD_NO_BENCHMARKS CMake option, which (in combination with RE2_BUILD_TESTING) makes it possible to build and run tests without also building and running benchmarks. The default behavior is unchanged in both the RE2_BUILD_TESTING=OFF and RE2_BUILD_TESTING=ON cases.

This can be useful for people like Linux distribution packagers, who do want to run tests but do not necessarily care about benchmarks, and who might prefer to avoid the dependency on https://github.com/google/benchmark. (I maintain re2 in Fedora.)

Copy link

RE2 uses Gerrit instead of GitHub pull requests.
See the Contribute wiki page.

@github-actions github-actions bot closed this Jun 15, 2025
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.

1 participant