-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Experimental Zig support for cross-compiling #32626
base: main
Are you sure you want to change the base?
Conversation
ZIG_TARGET.windows-arm64 := aarch64-windows-gnu | ||
ZIG_TARGET.windows-386 := x86-windows-gnu | ||
ZIG_TARGET.darwin-amd64 := x86_64-macos | ||
ZIG_TARGET.darwin-arm64 := aarch64-macos |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
according to https://ziglang.org/devlog/2024/#2024-11-19, maybe it should be aarch64-macos-none
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You were reading wrong article. That article is about zip-bootstrap
which is used to "bootstrap" the zig compiler, but not for zip compiler itself.
I have some questions about the cross-compiling. Is it possible to do native compiling as much as possible? Zig is still at an early stage and there are a lot of 🔍 in release notes.
|
And one more thing, should we split the Makefile into small files (or even small scripts)? Now more and more things are being added into the Makefile, and it seems difficult to debug on step (one build). |
adds some additional make steps, and replaces some xgo for some steps.
Currently zig is failing for darwin targets & linux-arm5, hence why they weren't switched out, and doesn't (yet?) support cross-compiling for freebsd.