Skip to content

Validate targets through wavec capability queries #27

Closed

Description

@LunaStev

Motivation

Wave now exposes stable, tool-friendly capability queries such as:

  • wavec print supported-targets
  • wavec print supported-input-types
  • wavec print supported-emit-kinds
  • wavec print target-spec --target <triple> --format=json

Vex currently forwards any --target value and relies on a later dry-run failure. It also maintains validation knowledge that can drift from the installed compiler.

Proposed behavior

Introduce a wavec capability layer that Vex can query for early target validation and compatibility diagnostics while keeping wavec internal.

Acceptance criteria

  • Validate vex build/run/check --target against the selected wavec.
  • Report the unsupported target and available alternatives.
  • Respect VEX_WAVEC as authoritative.
  • Define caching and invalidation by compiler path and version.
  • Keep --offline independent from local compiler capability queries.
  • Do not expose raw compiler flags through Vex.
  • Add fake-wavec contract tests for supported and unsupported targets.
  • Keep dry-run schema v1 validation as the final execution-plan contract.

Activity

  1. added
    build
    feature request
    wave compatibility
    tooling
    on Sep 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildfeature requesttoolingwave compatibility

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions