Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 12 commits into from
May 17, 2023

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