Skip to content

Commit

Permalink
add option to strip executable
Browse files Browse the repository at this point in the history
  • Loading branch information
jrg1k authored and Techatrix committed Mar 9, 2025
1 parent 2dfd6d6 commit e67dda0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ pub fn build(b: *Build) !void {

const single_threaded = b.option(bool, "single-threaded", "Build a single threaded Executable");
const pie = b.option(bool, "pie", "Build a Position Independent Executable");
const strip = b.option(bool, "strip", "Strip executable");
const enable_tracy = b.option(bool, "enable-tracy", "Whether tracy should be enabled.") orelse false;
const enable_tracy_allocation = b.option(bool, "enable-tracy-allocation", "Enable using TracyAllocator to monitor allocations.") orelse enable_tracy;
const enable_tracy_callstack = b.option(bool, "enable-tracy-callstack", "Enable callstack graphs.") orelse enable_tracy;
Expand Down Expand Up @@ -193,6 +194,7 @@ pub fn build(b: *Build) !void {
.optimize = optimize,
.single_threaded = single_threaded,
.pic = pie,
.strip = strip,
.imports = &.{
.{ .name = "exe_options", .module = exe_options },
.{ .name = "known-folders", .module = known_folders_module },
Expand Down

0 comments on commit e67dda0

Please sign in to comment.