Skip to content

Enable DDS_AB_STATS via --define=ab_stats=true.#208

Merged
zzcgumn merged 1 commit into
dds-bridge:developfrom
tameware:standardize-build-option
Jun 26, 2026
Merged

Enable DDS_AB_STATS via --define=ab_stats=true.#208
zzcgumn merged 1 commit into
dds-bridge:developfrom
tameware:standardize-build-option

Conversation

@tameware

Copy link
Copy Markdown
Collaborator

Wire a Bazel config_setting into DDS_LOCAL_DEFINES so AB stats can be turned on without --cxxopt=-DDDS_AB_STATS; refresh MODULE.bazel.lock.

Addresses Issue #198

Wire a Bazel config_setting into DDS_LOCAL_DEFINES so AB stats can be
turned on without --cxxopt=-DDDS_AB_STATS; refresh MODULE.bazel.lock.

Co-authored-by: Cursor <cursoragent@cursor.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR makes it possible to enable alpha-beta (AB) search statistics through a Bazel --define flag, so developers no longer need to pass --cxxopt=-DDDS_AB_STATS manually. This aligns with Issue #198’s request to standardize feature toggles via Bazel configuration.

Changes:

  • Adds a root-level Bazel config_setting named ab_stats driven by --define=ab_stats=true.
  • Wires that config_setting into DDS_LOCAL_DEFINES so DDS_AB_STATS is set automatically when enabled.
  • Updates documentation in debug.h and refreshes MODULE.bazel.lock.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.

File Description
BUILD.bazel Introduces config_setting(name = "ab_stats") keyed off --define=ab_stats=true.
CPPVARIABLES.bzl Adds a select() arm to inject DDS_AB_STATS into DDS_LOCAL_DEFINES when //:ab_stats matches.
library/src/utility/debug.h Documents the Bazel flag to enable AB stats.
MODULE.bazel.lock Updates Bazel module lock metadata consistent with dependency resolution changes.

@tameware tameware marked this pull request as ready for review June 25, 2026 22:57
@tameware tameware requested a review from zzcgumn June 25, 2026 22:57
@zzcgumn zzcgumn merged commit 028e68e into dds-bridge:develop Jun 26, 2026
7 checks passed
@tameware tameware deleted the standardize-build-option branch June 27, 2026 02:09
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.

3 participants