summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobby Zambito <contact@robbyzambito.me>2025-04-06 12:22:10 -0400
committerRobby Zambito <contact@robbyzambito.me>2025-04-06 13:08:09 -0400
commit2302e6930d7c5814b8bbaf3a63f68e0a8562d0d1 (patch)
treeb484cbce4ad37845ce9841b11c2209982f38b86c
parent935e552a598ddb1355b0218ee3838b88c83b2a83 (diff)
Depend on clap the same way as network
-rw-r--r--build.zig4
1 files changed, 1 insertions, 3 deletions
diff --git a/build.zig b/build.zig
index f57a948..b6d15a4 100644
--- a/build.zig
+++ b/build.zig
@@ -27,6 +27,7 @@ pub fn build(b: *std.Build) void {
});
exe_mod.addImport("network", b.dependency("network", .{}).module("network"));
+ exe_mod.addImport("clap", b.dependency("clap", .{}).module("clap"));
// This creates another `std.Build.Step.Compile`, but this one builds an executable
// rather than a static library.
@@ -35,9 +36,6 @@ pub fn build(b: *std.Build) void {
.root_module = exe_mod,
});
- const clap = b.dependency("clap", .{});
- exe.root_module.addImport("clap", clap.module("clap"));
-
// This declares intent for the executable to be installed into the
// standard location when the user invokes the "install" step (the default
// step when running `zig build`).