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(.{