diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-18 20:52:50 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-18 21:22:58 -0300 |
| commit | a75956bb3443aa8aac778d2ff12c42f5ef99e0e9 (patch) | |
| tree | 17547cbf6606c8bd05be313cd8f835cb85d13e57 /build/process.zig | |
| parent | 5b33c88476054fffc1044fff0526f7f0b28563cf (diff) | |
| download | pardes-a75956bb3443aa8aac778d2ff12c42f5ef99e0e9.tar.gz pardes-a75956bb3443aa8aac778d2ff12c42f5ef99e0e9.zip | |
runtime: main, daemon, upgrade, crash, addon_test, 9p_io, 9p and macos.zig into runtime/ (the reorganisation's tree, step 2a), skill.txt with main.zig, its one reader: module `runtime` (runtime/root.zig) and the core, each naming the other, a product's root (main.zig, macos.zig) a module of its own over both; the files name across by module (`@import("runtime").daemon`, `@import("core").look`), pardes.zig exporting what they name (ctl, edit_cmd, tracy, selection_pipe, and the frontends until they move); core-test and shell-test run each module's test program, so the same tests run (the ledger: every named test of every suite the base's, tui and gui); nothing else changes: frames byte-identical, the same counts (tui core-test 822/963, the one more an anonymous collector)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'build/process.zig')
| -rw-r--r-- | build/process.zig | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/build/process.zig b/build/process.zig index 16f9b48b..d3ae9e68 100644 --- a/build/process.zig +++ b/build/process.zig @@ -15,16 +15,11 @@ pub fn add(b: *std.Build, opts: struct { optimize: std.builtin.OptimizeMode, ghostty_vt: ?*std.Build.Module, cloud9: *std.Build.Module, + /// The runtime whose 9P client the runner speaks (build/core.zig `module`). + runtime: *std.Build.Module, /// The build is the window's (-Dplatform=gui): the process tests drive it. gui: bool = false, }) void { - const ninep_client = b.createModule(.{ - .target = opts.target, - .optimize = opts.optimize, - .root_source_file = b.path("src/9p_io.zig"), - .link_libc = true, - }); - ninep_client.addImport("cloud9", opts.cloud9); const process_test = b.addExecutable(.{ .name = "pardes-process-test", .root_module = b.createModule(.{ @@ -35,7 +30,8 @@ pub fn add(b: *std.Build, opts: struct { }), }); if (opts.ghostty_vt) |vt| process_test.root_module.addImport("ghostty-vt", vt); - process_test.root_module.addImport("9p_io", ninep_client); + // The 9P client (runtime/9p_io.zig), through the runtime beside the core. + process_test.root_module.addImport("runtime", opts.runtime); process_test.root_module.addImport("cloud9", opts.cloud9); switch (opts.target.result.os.tag) { .freebsd, .netbsd, .openbsd => process_test.root_module.linkSystemLibrary("util", .{}), |
