Skip to content

Commit 9a6b619

Browse files
committed
adjust build.zig
1 parent 9ad57db commit 9a6b619

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

build.zig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
const std = @import("std");
22

33
pub fn build(b: *std.Build) void {
4+
const exe_name = b.option([]const u8, "exe_name", "Name of the executable") orelse "httpspec";
45
const dependencies = [_][]const u8{
56
"clap",
67
};
@@ -15,7 +16,7 @@ pub fn build(b: *std.Build) void {
1516
});
1617

1718
const exe = b.addExecutable(.{
18-
.name = "httpspec",
19+
.name = exe_name,
1920
.root_module = exe_mod,
2021
});
2122

0 commit comments

Comments
 (0)