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

Compile Linux releases with zig cc #37

Closed
bjia56 opened this issue Feb 3, 2024 · 0 comments · Fixed by #39
Closed

Compile Linux releases with zig cc #37

bjia56 opened this issue Feb 3, 2024 · 0 comments · Fixed by #39

Comments

@bjia56
Copy link
Collaborator

bjia56 commented Feb 3, 2024

The Zig compiler supports building C and C++ code with zig cc and zig c++, since it uses clang internally. With clang, [cross] compiling to x86_64, aarch64, and arm32 is possible with the same toolchain, and even cross compiling to Windows/MacOS if desired. Additionally, Zig allows targeting a specific glibc release, which would make it easier to pin to glibc 2.17 (for manylinux2014 compliance) without using old distro containers.

I've had success in my Portable Python project using Zig to compile all of CPython and its dependencies against glibc 2.17, so I think it should be possible to do the same here.

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 a pull request may close this issue.

1 participant