Update build.zig for 0.16 (#304)
This commit is contained in:
parent
7d4761b878
commit
96de992410
1 changed files with 2 additions and 2 deletions
|
|
@ -405,13 +405,13 @@ pub fn build(b: *std.Build) !void {
|
||||||
const raylib_test = b.addTest(.{
|
const raylib_test = b.addTest(.{
|
||||||
.root_module = raylib,
|
.root_module = raylib,
|
||||||
});
|
});
|
||||||
raylib_test.linkLibC();
|
raylib_test.root_module.link_libc = true;
|
||||||
|
|
||||||
const raygui_test = b.addTest(.{
|
const raygui_test = b.addTest(.{
|
||||||
.root_module = raygui,
|
.root_module = raygui,
|
||||||
});
|
});
|
||||||
raygui_test.root_module.addImport("raylib-zig", raylib);
|
raygui_test.root_module.addImport("raylib-zig", raylib);
|
||||||
raygui_test.linkLibC();
|
raygui_test.root_module.link_libc = true;
|
||||||
|
|
||||||
const test_step = b.step("test", "Check for library compilation errors");
|
const test_step = b.step("test", "Check for library compilation errors");
|
||||||
test_step.dependOn(&raylib_test.step);
|
test_step.dependOn(&raylib_test.step);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue