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

🥌 Handle cross-compilation across platforms #73

Merged
merged 1 commit into from
Apr 1, 2024

Conversation

agriyakhetarpal
Copy link
Owner

An even bigger improvement! Thanks, @ziglang!

@agriyakhetarpal agriyakhetarpal force-pushed the cross-compile-to-different-platforms branch 3 times, most recently from 6c86cb7 to 89b8c6a Compare April 1, 2024 22:37
@agriyakhetarpal agriyakhetarpal force-pushed the cross-compile-to-different-platforms branch from 89b8c6a to 2274bbf Compare April 1, 2024 23:00
@agriyakhetarpal
Copy link
Owner Author

agriyakhetarpal commented Apr 1, 2024

@agriyakhetarpal agriyakhetarpal merged commit 1809b69 into main Apr 1, 2024
28 checks passed
@agriyakhetarpal agriyakhetarpal deleted the cross-compile-to-different-platforms branch April 1, 2024 23:51
agriyakhetarpal added a commit that referenced this pull request Apr 2, 2024
This commit configures the `platform_tag` retrieval across all
three major platforms. This way, cross-compilation can be enabled
from any platform and architecture to any target that is supported
by the Zig compiler toolchain. Support for the Xcode toolchain has
been retained on macOS. Published wheels on PyPI will not be
cross-compiled since this is all still experimental and right now not
supported by the upstream Hugo project.

The experiments here confirm that with the correct choice of CC
and CXX and with GOOS and GOARCH, the wheels can be
cross-compiled for Windows (amd64/arm64/x86),
Linux (amd64/arm64), and macOS (amd64/arm64). It is to be
noted that CIBUILDWHEEL restricts the cross-compilation on
macOS and for good reason, since we want to compile natively.

Future work here can improve the error handling to detect the
various compiler toolchains present.
This pull request was closed.
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.

1 participant