diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-05 11:40:11 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-05 12:41:36 -0300 |
| commit | 3f1533813b6692a736251e4d467a7f108229ddee (patch) | |
| tree | 37a32c5ebbf9d3af08923856fd6fa516f3b33a39 /src/config.zig | |
| parent | cfd2b993feda1b3f7474225bb32db8cac8edc5ae (diff) | |
| download | pardes-3f1533813b6692a736251e4d467a7f108229ddee.tar.gz pardes-3f1533813b6692a736251e4d467a7f108229ddee.zip | |
targets: the DOM web shell goes (src/web.zig and src/web/, its harnesses web_harness, web_snapshot, web_driver_test and web-snapshots/, tools/web_fixture.py, -Dplatform=web, -Ddump, and the web, web-harness, web-snap, web-e2e and web-driver-test steps), and with it what only a freestanding build needed: `hosted` and every guard on it (every build has a host now), memory's stack-fallback arenas and reduced_target sizes, the emscripten main, the tree-sitter libc shim and the stb stub, lsp's has_client, the web arms of the platform switches (-Dplatform is tui, gui or macos); the macOS files pass zig ast-check; docs/web.md is a paragraph on what it was
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/config.zig')
| -rw-r--r-- | src/config.zig | 25 |
1 files changed, 6 insertions, 19 deletions
diff --git a/src/config.zig b/src/config.zig index f84f438c..b12630e9 100644 --- a/src/config.zig +++ b/src/config.zig @@ -203,12 +203,10 @@ pub const leader_path = paths: { } if (builtins.EffectCode.enabled) table.set(.EffectCode, null); if (builtins.TreeContext.enabled) table.set(.TreeContext, null); - if (pardes.hosted) { - table.set(.ThemeFile, null); - table.set(.DumpThemes, null); - table.set(.Mount, null); - table.set(.Unmount, null); - } + table.set(.ThemeFile, null); + table.set(.DumpThemes, null); + table.set(.Mount, null); + table.set(.Unmount, null); if (pardes.can_attach) { table.set(.Detach, "sD"); table.set(.Adopt, null); @@ -448,11 +446,11 @@ pub fn defaultShell() []const u8 { } fn defaultShellHost() []const u8 { - if (comptime pardes.hosted) if (std.c.getenv("SHELL")) |s| { + if (std.c.getenv("SHELL")) |s| { const shell = std.mem.span(s); // One that is not there, or not executable, is no shell: /bin/sh. if (shell.len > 0 and std.c.access(s, std.c.X_OK) == 0) return shell; - }; + } return "/bin/sh"; } @@ -1504,8 +1502,6 @@ pub const Runtime = struct { } if (find("WindowOpacity").?.enabled(context.capabilities)) try out.print("# Window opacity change pending: {s}\n", .{onOff(state.window_opacity_pending)}); - if (context.capabilities.tagline_font_size and !find("TaglineSize").?.enabled(context.capabilities)) - try out.writeAll("# Tagline size: build-time only\n"); if (context.startup_config_path) |path| try out.print("# Startup config: {s}\n", .{path}) else @@ -1811,15 +1807,6 @@ pub const Runtime = struct { // ...and every one after it a `#` line, which runs as nothing. var info = std.mem.splitScalar(u8, std.mem.trimEnd(u8, defaults_report[words.len + 2 ..], "\n"), '\n'); while (info.next()) |each| try std.testing.expect(std.mem.startsWith(u8, each, "# ")); - - defaults_context.platform = "web"; - defaults_context.capabilities.panel_transitions = false; - defaults_context.capabilities.tagline_font_size = true; - out = .fixed(&storage); - try writeReport(&out, defaults_context); - const web_report = storage[0..out.end]; - try std.testing.expect(std.mem.indexOf(u8, web_report, "# PanelSlide unsupported\n") != null); - try std.testing.expect(std.mem.indexOf(u8, web_report, "# Tagline size: build-time only\n") != null); } }; |
