Skip to content

Commit f31c09b

Browse files
committed
Remove Debug→ReleaseFast override in build.zig
zig build with no flags now builds Debug (fast compile, ~30s on VM). zig build -Doptimize=ReleaseFast for release builds. The override was causing all builds to take 5+ min on 2-vCPU VMs, blocking CI and agent workflows.
1 parent a82f991 commit f31c09b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎build.zig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pub fn build(b: *std.Build) void {
55
const enable_git_fallback = b.option(bool, "git-fallback", "Enable git CLI fallback") orelse false;
66
const options = b.addOptions();
77
options.addOption(bool, "enable_git_fallback", enable_git_fallback);
8-
const exe_optimize: std.builtin.OptimizeMode = if (optimize == .Debug) .ReleaseFast else optimize;
8+
const exe_optimize = optimize;
99
const exe = b.addExecutable(.{
1010
.name = "ziggit",
1111
.root_module = b.createModule(.{

0 commit comments

Comments
 (0)