Skip to content

feat(elf): make --color-diagnostics native (reld#123 Phase 2) - #142

Merged
zackees merged 1 commit into
mainfrom
phase2-color-diagnostics-native
Sep 16, 2026
Merged

zackees merged 1 commit into
mainfrom
phase2-color-diagnostics-native

Conversation

@zackees

@zackees zackees commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

What

Implements the next reld#123 Phase 2 diagnostics item: --color-diagnostics / --no-color-diagnostics are native, not a route to lld.

Before, --color-diagnostics routed to lld via a ColorDiagnostics capability. Now it's handled natively with colored::control:

  • --color-diagnostics / --color-diagnostics=always → force color.
  • --color-diagnostics=never / --no-color-diagnostics → disable color.
  • --color-diagnostics=auto → reset to environment/TTY detection.

The ColorDiagnostics capability and its routing are removed.

Verification

  • cargo test -p reld-core --lib bridge::tests — 52 pass (incl. extended fatal_warnings_stays_native).
  • cargo clippy -p reld-core --all-targets -- -D warnings — clean.
  • cargo fmt --check — clean.

Notes

  • Docs (README/polylinker) updated: "color policy" is no longer a routed capability (only LTO, ICF, discard-all, Cortex-A53, and text-reloc policy remain routed).

🤖 Generated with Claude Code

`--color-diagnostics` was routed to lld (a ColorDiagnostics capability).
Implement it natively with colored::control: `--color-diagnostics[=always]`
forces color, `=never`/`--no-color-diagnostics` disables it, `=auto` resets.
Remove the now-unused ColorDiagnostics capability and its routing, and update
the README/polylinker capability-table claims.

Part of reld#123 Phase 2 ("--color-diagnostics … native diagnostics
plumbing").

Co-Authored-By: Claude Code <[email protected]>
@zackees
zackees merged commit aa3adde into main Sep 16, 2026
17 checks passed
@zackees
zackees deleted the phase2-color-diagnostics-native branch September 16, 2026 21:29
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.

1 participant