Skip to content

Removes a left-over --cxxopt=-D style definition that was inert. - #300

Open
zzcgumn wants to merge 3 commits into
developfrom
fix/prefer_define_over_cxx_opts
Open

Removes a left-over --cxxopt=-D style definition that was inert.#300
zzcgumn wants to merge 3 commits into
developfrom
fix/prefer_define_over_cxx_opts

Conversation

@zzcgumn

@zzcgumn zzcgumn commented Aug 9, 2026

Copy link
Copy Markdown
Collaborator

Closes #197

zzcgumn and others added 2 commits August 9, 2026 16:52
context_equivalence_test_ctx_tt hardcoded local_defines instead of
going through the --define=tt_context_ownership=true config_setting
mechanism, and the define is inert (no source #ifdefs it). Remove
the target and update the spec accordingly.

Co-Authored-By: Claude <noreply@anthropic.com>
DDS_TT_CONTEXT_OWNERSHIP had no source #ifdef and, after removing the
last target that hardcoded it, nothing enabled it either. Drop the
config_setting, its DDS_LOCAL_DEFINES select() branch, and the spec
mentions — TT ownership is unconditionally instance-scoped via
SearchContext, so there's nothing left for this flag to gate.

Co-Authored-By: Claude <noreply@anthropic.com>
@zzcgumn zzcgumn self-assigned this Aug 9, 2026
@zzcgumn zzcgumn added this to the v3.1.0 milestone Aug 9, 2026
@zzcgumn
zzcgumn requested a lite review from Copilot August 9, 2026 16:52

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 removes the unused/inert tt_context_ownership build flag plumbing (DDS_TT_CONTEXT_OWNERSHIP) and the corresponding Bazel test target that attempted to enable it, while updating the design/build specs to reflect that TT ownership is always instance-scoped via SearchContext.

Changes:

  • Remove tt_context_ownership config_setting from the root BUILD.bazel and its propagation from CPPVARIABLES.bzl.
  • Delete the redundant context_equivalence_test_ctx_tt system test target that only differed by local_defines = ["DDS_TT_CONTEXT_OWNERSHIP"].
  • Update specs to remove/clarify documentation around the now-removed inert flag.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
specs/transposition-table.md Removes mention of the inert ownership flag and clarifies TT ownership behavior.
specs/build-system.md Removes tt_context_ownership from the documented --define feature-flag table.
library/tests/system/BUILD.bazel Drops the context_equivalence_test_ctx_tt test target that had no effect.
CPPVARIABLES.bzl Removes the DDS_TT_CONTEXT_OWNERSHIP define from DDS_LOCAL_DEFINES selection.
BUILD.bazel Removes the tt_context_ownership config_setting.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread specs/build-system.md

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

Copilot reviewed 6 out of 6 changed files in this pull request and generated no new comments.

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.

Refactor to use --define consistently to define pre processor values.

2 participants