summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig3
1 files changed, 3 insertions, 0 deletions
diff --git a/build.zig b/build.zig
index 0eccf2a..c325e60 100644
--- a/build.zig
+++ b/build.zig
@@ -2,11 +2,14 @@ const std = @import("std");
// Learn more about this file here: https://ziglang.org/learn/build-system
pub fn build(b: *std.Build) void {
+ const optimize = b.standardOptimizeOption(.{ .preferred_optimize_mode = .ReleaseFast });
+
const exe = b.addExecutable(.{
.name = "main",
.root_module = b.createModule(.{
.root_source_file = b.path("src/main.zig"),
.target = b.graph.host,
+ .optimize = optimize,
}),
});