authorgravatar for hi@whatisaph.onewhatisaphone <hi@whatisaph.one> 2026-07-31 17:24:16-04:00
committergravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2026-08-01 23:40:39+02:00
log9ef236bc114fa859768d0837abe4e7e573ad22c8
tree2118913ec76f4449dc5e57136bff7b3c3b28c2f7
parent4af8a35ca91578615f1a6c7a3dc8c82cfd48fea3

Add env var to set zig build --summary


2 files changed, 7 insertions(+), 0 deletions(-)

lib/compiler/Maker.zig+6
......@@ -242,6 +242,12 @@ pub fn main(init: process.Init.Minimal) !void {
242242 }
243243 }
244244
245 if (EnvVar.ZIG_BUILD_SUMMARY.get(&graph.environ_map)) |str| {
246 if (stringToEnum(Summary, str)) |value| {
247 summary = value;
248 }
249 }
250
245251 try configure_argv.ensureUnusedCapacity(arena, 16);
246252 try cached_passthru_configure.ensureUnusedCapacity(arena, 16);
247253
lib/std/zig.zig+1
......@@ -763,6 +763,7 @@ pub const EnvVar = enum {
763763 ZIG_LIBC,
764764 ZIG_BUILD_ERROR_STYLE,
765765 ZIG_BUILD_MULTILINE_ERRORS,
766 ZIG_BUILD_SUMMARY,
766767 ZIG_VERBOSE_LINK,
767768 ZIG_VERBOSE_CC,
768769 ZIG_VERBOSE_CMD,