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 /build/snap.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 'build/snap.zig')
| -rw-r--r-- | build/snap.zig | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/build/snap.zig b/build/snap.zig index e82bf1ef..01316966 100644 --- a/build/snap.zig +++ b/build/snap.zig @@ -156,35 +156,3 @@ pub fn addTty(b: *std.Build, opts: struct { run_driver_test.has_side_effects = true; b.step("snap-driver-test", "test snapshot retry evidence and failure reporting").dependOn(&run_driver_test.step); } - -pub fn addWeb(b: *std.Build) void { - const driver_test = b.addSystemCommand(&.{ "node", "--test", "test/web_driver_test.mjs" }); - driver_test.setCwd(b.path(".")); - driver_test.has_side_effects = true; - b.step("web-driver-test", "test browser driver deadlines and cleanup").dependOn(&driver_test.step); - const build_web_snap = b.addSystemCommand(&.{ - b.graph.zig_exe, - "build", - "web", - "-Dplatform=web", - "-Dtarget=wasm32-freestanding", - "-Dtree-sitter=zig", - "-Ddump=test/web-snapshots/touch.dump", - "-p", - "zig-out/web-snap-test", - }); - build_web_snap.setCwd(b.path(".")); - const run_web_snap = b.addSystemCommand(&.{ - "node", - "test/web_snapshot.mjs", - "zig-out/web-snap-test/web", - "test/web-snapshots/touch.mjs", - }); - run_web_snap.setCwd(b.path(".")); - run_web_snap.step.dependOn(&build_web_snap.step); - run_web_snap.step.dependOn(&driver_test.step); - run_web_snap.has_side_effects = true; - run_web_snap.addPassthruArgs(); - b.step("web-snap", "run browser highlighting, touch, Look, resize and scroll checks").dependOn(&run_web_snap.step); - b.step("web-e2e", "run the Chrome-driven DOM end-to-end suite").dependOn(&run_web_snap.step); -} |
