Skip to content

Feat: Introduce BMQ_ASSERT_LEVEL cache variable - #1298

Merged
pniedzielski merged 1 commit into
bloomberg:mainfrom
pniedzielski:fix/bsls_assert
Apr 14, 2026
Merged

Feat: Introduce BMQ_ASSERT_LEVEL cache variable#1298
pniedzielski merged 1 commit into
bloomberg:mainfrom
pniedzielski:fix/bsls_assert

Conversation

@pniedzielski

@pniedzielski pniedzielski commented Apr 13, 2026

Copy link
Copy Markdown
Collaborator

Rather than invariably setting the assert level we compile at based on the build mode (release or non-release), this patch introduces a new cache variable BMQ_ASSERT_LEVEL, which can override the default assert level computed based on the build mode. For explicitness’s sake, we set this to SAFE in our CMakePresets, but users can now override this.

Supercedes: #1243

@pniedzielski
pniedzielski marked this pull request as ready for review April 13, 2026 21:22
@pniedzielski
pniedzielski requested a review from a team as a code owner April 13, 2026 21:22
@pniedzielski
pniedzielski force-pushed the fix/bsls_assert branch 2 times, most recently from 54e0205 to 79e359b Compare April 14, 2026 18:11
@pniedzielski
pniedzielski requested a review from hallfox April 14, 2026 18:17
Comment thread etc/presets/default.json Outdated
Rather than invariably setting the assert level we compile at based on
the build mode (release or non-release), this patch introduces a new
cache variable `BMQ_ASSERT_LEVEL`, which can override the default
assert level computed based on the build mode.  For explicitness’s
sake, we set this to SAFE in our CMakePresets, but users can now
override this.

Signed-off-by: Patrick M. Niedzielski <pniedzielski@bloomberg.net>
@pniedzielski
pniedzielski merged commit 4cc0ca6 into bloomberg:main Apr 14, 2026
40 of 46 checks passed
@pniedzielski
pniedzielski deleted the fix/bsls_assert branch April 15, 2026 17:01
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