Skip to content

feat: support cross-compilation via Bazel's platforms & toolchains#50

Merged
aherrmann merged 12 commits intomainfrom
cross-compilation
May 17, 2023
Merged

feat: support cross-compilation via Bazel's platforms & toolchains#50
aherrmann merged 12 commits intomainfrom
cross-compilation

Conversation

@aherrmann
Copy link
Owner

Closes #48

Implements cross-compilation support using Bazel's platforms and toolchains mechanism. The target platform can be configured as a Bazel platform. The supported Zig target platforms can be configured by registering Zig target platform targets. A minimal set of supported target platforms is pre-defined under //zig/target for now.

Adds unit tests for the approprate target compiler flag and an integration test for cross compilation.

@aherrmann aherrmann enabled auto-merge May 17, 2023 06:55
@aherrmann aherrmann merged commit c253da7 into main May 17, 2023
@aherrmann aherrmann deleted the cross-compilation branch May 17, 2023 06:56
@aherrmann aherrmann changed the title Support cross-compilation feat: support cross-compilation via Bazel's platforms & toolchains Jun 2, 2023
aherrmann pushed a commit that referenced this pull request Jun 4, 2023
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
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.

Support cross-compilation for minimal set of targets

1 participant