fixed core.zig build script
This commit is contained in:
parent
43a88376ee
commit
8631f627cf
|
|
@ -30,16 +30,21 @@ pub fn build(b: *std.Build) void {
|
||||||
|
|
||||||
const test_step = b.step("test", "run unit tests for core");
|
const test_step = b.step("test", "run unit tests for core");
|
||||||
const tests = b.addTest(.{
|
const tests = b.addTest(.{
|
||||||
.target = target,
|
.root_module = b.createModule(.{
|
||||||
.optimize = optimize,
|
.target = target,
|
||||||
.root_source_file = b.path("tests/tests.zig"),
|
.optimize = optimize,
|
||||||
|
.root_source_file = b.path("tests/tests.zig"),
|
||||||
|
}),
|
||||||
});
|
});
|
||||||
|
|
||||||
const sampleGameExtern = b.addSharedLibrary(.{
|
const sampleGameExtern = b.addLibrary(.{
|
||||||
.root_source_file = b.path("tests/externalModule.zig"),
|
.root_module = b.createModule(.{
|
||||||
.link_libc = true,
|
.root_source_file = b.path("tests/externalModule.zig"),
|
||||||
.optimize = optimize,
|
.link_libc = true,
|
||||||
.target = target,
|
.optimize = optimize,
|
||||||
|
.target = target,
|
||||||
|
}),
|
||||||
|
.linkage = .dynamic,
|
||||||
.name = "external",
|
.name = "external",
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue