Skip to content

Commit 9ba6cb8

Browse files
committed
build: add -Dstrip option
1 parent 0ad6869 commit 9ba6cb8

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

build.zig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,15 @@ pub fn build(b: *std.Build) void {
99
.target = target,
1010
});
1111

12+
const strip = b.option(bool, "strip", "Omit debug info") orelse false;
13+
1214
const exe = b.addExecutable(.{
1315
.name = "depz",
1416
.root_module = b.createModule(.{
1517
.root_source_file = b.path("src/main.zig"),
1618
.target = target,
1719
.optimize = optimize,
20+
.strip = strip,
1821
.imports = &.{
1922
.{ .name = "depz_cli", .module = mod },
2023
},

0 commit comments

Comments
 (0)