From 88632df6718383651fe280b7f43560b2b0533e8c Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Wed, 9 Jun 2021 16:18:01 -0700 Subject: [PATCH] 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 --- build.zig | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build.zig b/build.zig index 03a8877..d813ad5 100644 --- a/build.zig +++ b/build.zig @@ -38,7 +38,14 @@ pub fn build(b: *Builder) void { // "-static", // "--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.strip = true; exe.install();