fixed core.zig build script

This commit is contained in:
peterino2 2025-10-13 22:19:09 -07:00
parent 43a88376ee
commit 8631f627cf
1 changed files with 13 additions and 8 deletions

View File

@ -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",
});