Skip to content

Commit

Permalink
Revert ":wrench: Move release mode to build.zig"
Browse files Browse the repository at this point in the history
This reverts commit fcdd874.
  • Loading branch information
segersniels committed Mar 31, 2024
1 parent fcdd874 commit eaa4496
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions apps/cli/build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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| {
Expand Down
2 changes: 1 addition & 1 deletion apps/cli/package.json
Original file line number Diff line number Diff line change
@@ -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 ."
}
Expand Down

0 comments on commit eaa4496

Please sign in to comment.