From 6d3b6cbc1361d174ffabb49b2ee84c5c6039dda5 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Sat, 31 Oct 2026 09:02:18 -0300 Subject: Enable native macOS replica sockets and repair platform validation --- src/builtins.zig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/builtins.zig') diff --git a/src/builtins.zig b/src/builtins.zig index 38a4d835..f59d30fe 100644 --- a/src/builtins.zig +++ b/src/builtins.zig @@ -118,7 +118,6 @@ fn isEnabled(comptime T: type) bool { return !@hasDecl(T, "enabled") or T.enabled; } - /// Why `word`, a builtin some build has, is none in this one: `GUI-only` /// for the GUI's own (`gui_only`), else `not in this build`; null for a /// word that is one here, or in no build. @@ -498,6 +497,10 @@ test "Ligatures is a setting only in the shell that shapes text" { defer p.deinit(); // A desktop build has the word, which a window's view takes alone. try std.testing.expectEqual(desktop, @hasField(registry.Builtin(), "Ligatures")); + if (comptime !desktop) { + try std.testing.expect(!p.executeBuiltinLine(p.active, "Ligatures off")); + return; + } const exists = registry.here(p, .Ligatures); try std.testing.expectEqual(pardes.platform == .gui, exists); // Taken either way: run, or said to be GUI-only. -- cgit v1.3