mirror of
https://git.robbyzambito.me/zaprus
synced 2025-12-20 08:14:50 +00:00
Depend on clap the same way as network
This commit is contained in:
@@ -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`).
|
||||
|
||||
Reference in New Issue
Block a user