Fix zollections module configuration.
This commit is contained in:
parent
85d302d522
commit
6dc68be101
1 changed files with 8 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue