Skip to content

Separate selectable compiler passes#4

Open
asp24 wants to merge 12 commits into
masterfrom
feature/cli-pass-control
Open

Separate selectable compiler passes#4
asp24 wants to merge 12 commits into
masterfrom
feature/cli-pass-control

Conversation

@asp24
Copy link
Copy Markdown
Owner

@asp24 asp24 commented May 26, 2026

Summary

  • Adds repeatable --enable-pass support for opt-in compiler passes
  • Splits CLI pass registration into always-included passes and selectable passes
  • Updates cmd.Run and cmd.MustRun to accept both pass groups
  • Validates enabled pass names against registered selectable passes
  • Deduplicates resolved passes by Pass.Name(), preserving the first included pass
  • Adds built-in selectable slog and expose-all passes
  • Moves reusable SLogPass into stdlib
  • Adds ExposeAllPass for generating public getters for all services in test containers

Test plan

  • go test ./cmd
  • go test ./...

@asp24 asp24 changed the title CLI pass control: --enable-pass / --disable-pass with SelectablePass Separate selectable compiler passes May 27, 2026
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