Skip to content

Clarify target-platform vs exec-platform behavior #9

Description

@darthfork

The ruleset has the beginnings of toolchain integration, but production language rulesets need a clear model for host tools, execution platform, and target platform, especially for cross-compilation.

Current code:

  • zig/extensions.bzl
  • zig/toolchain.bzl
  • zig/rules.bzl

Tasks:

  • Document the intended meaning of the Zig toolchain in Bazel terms.
  • Verify toolchain selection works correctly for exec and target platforms.
  • Design for cross-compilation via --platforms.
  • Add tests covering at least one cross-platform build scenario.

Acceptance criteria:

  • Cross-platform behavior is documented.
  • Toolchain selection is validated by tests.
  • Users can intentionally cross-compile with documented examples.

Parent issue: #2

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions