lexiforest / curl-impersonate

An active fork of curl-impersonate with more versions and build targets.
MIT License
76 stars 15 forks source link

Compile Linux releases with `zig cc` #37

Closed bjia56 closed 9 months ago

bjia56 commented 9 months ago

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.