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
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.bzlzig/toolchain.bzlzig/rules.bzlTasks:
--platforms.Acceptance criteria:
Parent issue: #2