4 ms·
One of the niceties of Zig's build system is its batteries-included support for targeting an explicitly provided glibc version. No need for alternate sysroots o
by 10000truths 1y ago
One of the niceties of Zig's build system is its batteries-included support for targeting an explicitly provided glibc version. No need for alternate sysroots or dedicated old-distro containers like you would with the traditional C/C++ compilers, all you have to do is append it to the target triplet, like so:
zig cc -target x86_64-linux-gnu.2.17 file.c
- klodolph 1y agoIt’s not hard in Bazel either, it’s just not batteries-included.