From e616cf09e53f5c402c8f040d14baa211683e70e3 Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Mon, 19 Jun 2023 12:16:17 -0500 Subject: [PATCH] chore: make use of package manager --- build.zig | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/build.zig b/build.zig index 560b1c8..b0195c9 100644 --- a/build.zig +++ b/build.zig @@ -15,20 +15,11 @@ pub fn build(b: *std.Build) void { // set a preferred release mode, allowing the user to decide how to optimize. const optimize = b.standardOptimizeOption(.{}); - const lib = b.addStaticLibrary(.{ - .name = "zba-util", - // In this case the main source file is merely a path, however, in more - // complicated build scripts, this could be a generated file. - .root_source_file = .{ .path = "src/lib.zig" }, - .target = target, - .optimize = optimize, + _ = b.addModule("zba-util", .{ + .source_file = .{ .path = "src/lib.zig" }, + .dependencies = &.{}, }); - // This declares intent for the library to be installed into the standard - // location when the user invokes the "install" step (the default step when - // running `zig build`). - b.installArtifact(lib); - // Creates a step for unit testing. This only builds the test executable // but does not run it. const main_tests = b.addTest(.{