update build.zig with zig 0.8.0 instructions

My PR is still open, so it will be 0.9.0 at least before we get static build.zig support
This commit is contained in:
Emil Lerch 2021-06-09 16:18:01 -07:00
parent 32afc2c622
commit 88632df671
Signed by: lobo
GPG Key ID: A7B62D657EF764F8

View File

@ -38,7 +38,14 @@ pub fn build(b: *Builder) void {
// "-static", // "-static",
// "--strip", // "--strip",
// }); // });
//
// To compile on stock 0.8.0, comment this line of code, or use the Makefile
// See https://github.com/ziglang/zig/pull/8248
//
// On a musl-based x86_64 system, this pre-compiled zig can be used:
// https://github.com/elerch/zig/releases/download/0.8.0/zig-0.8.0-static-support-musl-libz.tgz
exe.is_static = true; exe.is_static = true;
exe.strip = true; exe.strip = true;
exe.install(); exe.install();