From 6dc68be1014fecfd2bf116e51bfc5aff03fca9f0 Mon Sep 17 00:00:00 2001 From: Madeorsk Date: Fri, 11 Oct 2024 12:06:32 +0200 Subject: [PATCH] Fix zollections module configuration. --- build.zig | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/build.zig b/build.zig index e09137e..3913210 100644 --- a/build.zig +++ b/build.zig @@ -24,6 +24,13 @@ pub fn build(b: *std.Build) void { // running `zig build`). b.installArtifact(lib); + // Add zollections module. + const zollections_module = b.addModule("zollections", .{ + .root_source_file = b.path("src/root.zig"), + .target = target, + .optimize = optimize, + }); + // Creates a step for unit testing. This only builds the test executable // but does not run it. const lib_unit_tests = b.addTest(.{ @@ -33,7 +40,7 @@ pub fn build(b: *std.Build) void { }); // Add zouter dependency. - lib_unit_tests.root_module.addImport("zollections", &lib.root_module); + lib_unit_tests.root_module.addImport("zollections", zollections_module); const run_lib_unit_tests = b.addRunArtifact(lib_unit_tests);