Skip to content

Commit

Permalink
Removed the preferred_release_option from build.zig
Browse files Browse the repository at this point in the history
- Removed the `preferred_release_option` from `build.zig` since it's transitive to other projects. This option is better reserved for library users.
  • Loading branch information
00JCIV00 committed Jul 2, 2024
1 parent cb63b1a commit 976c07b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ pub const generate = @import("src/generate.zig");

pub fn build(b: *std.Build) void {
const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{
.preferred_optimize_mode = .ReleaseSafe,
});
const optimize = b.standardOptimizeOption(.{});
//const build_options = b.addOptions();
const bin_name = b.option([]const u8, "name", "A name for the binary being created.");
b.exe_dir = "./bin";
Expand Down

0 comments on commit 976c07b

Please sign in to comment.