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",