summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig13
1 files changed, 13 insertions, 0 deletions
diff --git a/build.zig b/build.zig
index dea403ca..8fe2b1e3 100644
--- a/build.zig
+++ b/build.zig
@@ -1091,6 +1091,19 @@ pub fn build(b: *std.Build) void {
.link_libc = true,
}) });
unit_step.dependOn(&b.addRunArtifact(nested_test).step);
+ // fonts.zig is the same shape once more, and it needs its own module
+ // for the reason spelled out above rather than as a convention: the
+ // core imports it behind `platform == .gui or .macos`, so on this build
+ // nothing analyses it and its tests would silently not exist. That is
+ // how a picker capped at 512 faces on a machine with a thousand of them
+ // went unnoticed.
+ const fonts_test = b.addTest(.{ .root_module = b.createModule(.{
+ .target = target,
+ .optimize = optimize,
+ .root_source_file = b.path("src/fonts.zig"),
+ .link_libc = true,
+ }) });
+ unit_step.dependOn(&b.addRunArtifact(fonts_test).step);
// crt.zig is pure std — the mouse-mapping-vs-shader-formula test
const crt_test = b.addTest(.{ .root_module = b.createModule(.{
.target = target,