Skip to content

Commit

Permalink
Fix zig build test (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
ve-nt authored and HaxSam committed Jan 18, 2025
1 parent 4116138 commit aef4a52
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -245,13 +245,15 @@ pub fn build(b: *std.Build) !void {
.target = target,
.optimize = optimize,
});
raylib_test.linkLibC();

const raygui_test = b.addTest(.{
.root_source_file = b.path("lib/raygui.zig"),
.target = target,
.optimize = optimize,
});
raygui_test.root_module.addImport("raylib-zig", raylib);
raygui_test.linkLibC();

const test_step = b.step("test", "Check for library compilation errors");
test_step.dependOn(&raylib_test.step);
Expand Down

0 comments on commit aef4a52

Please sign in to comment.