From 5e56175fbe40fe702c2f3605a90081b4e00b7aed Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Thu, 29 Aug 2024 08:53:31 +0200 Subject: [PATCH] Small binary --- build.zig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build.zig b/build.zig index 329d6dc..dd86e94 100644 --- a/build.zig +++ b/build.zig @@ -1,8 +1,11 @@ const std = @import("std"); +const Mode = std.builtin.OptimizeMode; pub fn build(b: *std.Build) void { const target = b.standardTargetOptions(.{}); - const optimize = b.standardOptimizeOption(.{}); + const optimize = b.standardOptimizeOption(.{ + .preferred_optimize_mode = Mode.ReleaseSmall, + }); const exe = b.addExecutable(.{ .name = "newtest",