Repository navigation
feat(flag-table): bootstrap the declarative flag table (reld#123 Phase 1 / D1) - #139
Merged
Merged
Conversation
…e 1 / D1) Introduce the four-way Disposition (Native / SatisfiedByConstruction / Requires(Capability) / Unsupported) and FlagRule model, and an initial table classifying the flags reld already handles. Add `--print-flag-table` to emit it. This is the D1 bootstrap: the table currently covers the existing SATISFIED_BY_CONSTRUCTION / IGNORED / DEFAULT flags and the routed capabilities. The full Phase 1 vendoring of lld's Options.td + GNU ld's option list (growing the table to the ~150-option union, and a CI drift check) is a follow-up; the parser still reads its existing tables. Co-Authored-By: Claude Code <[email protected]>
This was referenced Sep 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Starts reld#123 Phase 1 (D1) — the declarative flag table that will replace the scattered flag classification.
Introduces the model and an initial table:
Disposition:Native/SatisfiedByConstruction/Requires(Capability)/Unsupported.FlagRule { spellings, value, disposition, emitters }, plusValueMatchandEmitter.FLAG_TABLEclassifying the flags reld already handles (theSATISFIED_BY_CONSTRUCTION/IGNORED/DEFAULTsets and the routed capabilities).--print-flag-table, which emits the table (e.g. fordocs/flags.mdgeneration later).Not in this PR (Phase 1 follow-ups)
Options.td+ GNU ld's option list to grow the table to the full ~150-option union, with a CI drift check.collect_requested_capabilities, the-zfallback,warn_unsupported, and theSILENTLY_IGNORED_FLAGS/IGNORED_FLAGS/DEFAULT_FLAGStables) to read from the flag table.This is the bootstrap so the table is concrete and the migration can be tracked against it.
Verification
cargo run --bin reld -- --print-flag-table— emits the table.cargo clippy -p reld-core --all-targets -- -D warnings— clean.cargo fmt --check— clean.🤖 Generated with Claude Code