summaryrefslogtreecommitdiff
path: root/src/main.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.zig')
-rw-r--r--src/main.zig10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/main.zig b/src/main.zig
index 607b0136..96aedc0a 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -233,13 +233,11 @@ fn parseCtrlKey(raw: []const u8) ?u21 {
// so their inline tests need naming here to exist at all. gui.zig only
// compiles when it IS the shell (it @cImports SDL), hence the comptime gate;
// under -Dplatform=tty this block analyses to nothing. Naming a file gets THAT
-// file's tests and no further: fonts.zig is imported by both gui.zig and
-// builtins.zig and still needs its own line here.
+// file's tests and no further: fonts.zig is imported by gui.zig, builtins.zig
+// and the macOS host, and still needs its own line here.
test {
_ = @import("user_config.zig");
_ = @import("allocators.zig");
- if (comptime pardes.platform == .gui) {
- _ = @import("gui/gui.zig");
- _ = @import("gui/fonts.zig");
- }
+ if (comptime pardes.platform == .gui) _ = @import("gui/gui.zig");
+ if (comptime pardes.font_picker) _ = @import("fonts.zig");
}