diff --git a/apps/cli/build.zig b/apps/cli/build.zig index c07a70e..e01a7d7 100644 --- a/apps/cli/build.zig +++ b/apps/cli/build.zig @@ -91,9 +91,7 @@ pub fn build(b: *std.Build) !void { // Standard optimization options allow the person running `zig build` to select // between Debug, ReleaseSafe, ReleaseFast, and ReleaseSmall. Here we do not // set a preferred release mode, allowing the user to decide how to optimize. - const optimize = b.standardOptimizeOption(.{ - .preferred_optimize_mode = .ReleaseSafe, - }); + const optimize = b.standardOptimizeOption(.{}); if (std.mem.eql(u8, is_ci_environment, "true")) { for (targets) |t| { diff --git a/apps/cli/package.json b/apps/cli/package.json index dc652a6..f13d4fb 100644 --- a/apps/cli/package.json +++ b/apps/cli/package.json @@ -1,7 +1,7 @@ { "name": "cli", "scripts": { - "build": "zig build --summary all", + "build": "zig build -Doptimize=ReleaseSafe --summary all", "build:ci": "CI=true npm run build", "lint": "zig fmt --check ." }