From 8631f627cfdd70f79b0b04f2a50ee4b95a0fc2b8 Mon Sep 17 00:00:00 2001 From: peterino2 Date: Mon, 13 Oct 2025 22:19:09 -0700 Subject: [PATCH] fixed core.zig build script --- engine/core/build.zig | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/engine/core/build.zig b/engine/core/build.zig index 6956563..2705aa9 100644 --- a/engine/core/build.zig +++ b/engine/core/build.zig @@ -30,16 +30,21 @@ pub fn build(b: *std.Build) void { const test_step = b.step("test", "run unit tests for core"); const tests = b.addTest(.{ - .target = target, - .optimize = optimize, - .root_source_file = b.path("tests/tests.zig"), + .root_module = b.createModule(.{ + .target = target, + .optimize = optimize, + .root_source_file = b.path("tests/tests.zig"), + }), }); - const sampleGameExtern = b.addSharedLibrary(.{ - .root_source_file = b.path("tests/externalModule.zig"), - .link_libc = true, - .optimize = optimize, - .target = target, + const sampleGameExtern = b.addLibrary(.{ + .root_module = b.createModule(.{ + .root_source_file = b.path("tests/externalModule.zig"), + .link_libc = true, + .optimize = optimize, + .target = target, + }), + .linkage = .dynamic, .name = "external", });