Skip to content
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

Add test profiles that disable all EMBOSS_CHECKs. #211

Merged
merged 2 commits into from
Nov 20, 2024

Conversation

reventlov
Copy link
Collaborator

This catches cases where C++ code inadvertently includes side effects inside of an EMBOSS_CHECK; the default EMBOSS_CHECK uses assert, which will be omitted when NDEBUG is defined.

Also remove the EMBOSS_FORCE_ALL_CHECKS define, which is a holdover from the glog-based EMBOSS_DCHECK implementation in the original, Google-internal implementation.

This catches cases where C++ code inadvertently includes side effects
inside of an `EMBOSS_CHECK`; the default `EMBOSS_CHECK` uses `assert`,
which will be omitted when `NDEBUG` is defined.
@reventlov reventlov requested a review from EricRahm November 14, 2024 00:12
Copy link
Collaborator

@EricRahm EricRahm left a comment

Choose a reason for hiding this comment

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

Two minor comments, overall concepts makes sense. Thanks for adding this!

compiler/back_end/cpp/build_defs.bzl Show resolved Hide resolved
runtime/cpp/emboss_defines.h Outdated Show resolved Hide resolved
@reventlov reventlov merged commit d7c0ba3 into google:master Nov 20, 2024
4 checks passed
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.

2 participants