Skip to content

Commit

Permalink
build.zig: strip executable in release modes (see #64)
Browse files Browse the repository at this point in the history
  • Loading branch information
floooh committed Jun 2, 2022
1 parent 7d191dc commit 2cd64a0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ pub fn build_exe(b: *bld.Builder, target: std.zig.CrossTarget, mode: std.builtin
const exe = b.addExecutable("sokol-shdc", null);
exe.setTarget(target);
exe.setBuildMode(mode);
exe.strip = mode != .Debug;
exe.linkSystemLibrary("c");
exe.linkSystemLibrary("c++");
exe.linkLibrary(lib_fmt(b, target, mode, prefix_path));
Expand Down

0 comments on commit 2cd64a0

Please sign in to comment.