Open motiejus opened 1 year ago
Since I like compressing things and comparing see how well they do it:
$ ls --block-size=K -1sS *.tar.xz | tac
36404K zig-x86_64-linux-musl-baseline-min.tar.xz
40932K zig-x86_64-linux-musl-baseline.tar.xz
53520K zig-x86_64-linux-musl-baseline-dbg.tar.xz
The first one is ReleaseSmall
, dependencies compiled with -DCMAKE_BUILD_TYPE=MinSizeRel
. The baseline is what we have today (ReleaseFast+strip
) and the last one is ReleaseSafe
+ debug symbols.
We currently have 2 "popular" kinds of release modes:
ReleaseFast
without debug symbols. Existing behaviour, will be used to cut releases.ReleaseSafe
with debug symbols. New behaviour, will be used for "new nightlies". See ziglang/zig#15194This script intends to be as prescriptive as possible, so we specifically avoid other valid combinations (e.g.
ReleaseSmall
). Therefore no such things like unvalidated "extra args" for zig.If you want to add a new build mode and feel like a wide population would benefit from it, submit a new issue and let's talk.
Example invocation: