diff options
| author | Gabriel Schneider <[email protected]> | 2026-08-05 19:32:30 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-08-10 09:17:07 -0300 |
| commit | 8aafc3fa24c7475a07259eb06cd5d217f510df98 (patch) | |
| tree | 62115e1ef1f15c57022060124c5ff934b778e169 /build.zig | |
| parent | 30a44a55232b829866bc3554647de21929276d1a (diff) | |
| download | pardes-8aafc3fa24c7475a07259eb06cd5d217f510df98.tar.gz pardes-8aafc3fa24c7475a07259eb06cd5d217f510df98.zip | |
add a Shell builtin, default fish, with per-family prompt integration
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -821,6 +821,17 @@ pub fn build(b: *std.Build) void { .link_libc = true, }) }); unit_step.dependOn(&b.addRunArtifact(temp_file_test).step); + // Resolving a shell binary and picking its prompt integration is the + // same shape: native-shell IO, no core imports, its own libc-linked + // module. (A test file the core merely re-exported would compile and + // silently never run — zig only collects tests from what it analyses.) + const shell_bin_test = b.addTest(.{ .root_module = b.createModule(.{ + .target = target, + .optimize = optimize, + .root_source_file = b.path("src/shell_bin.zig"), + .link_libc = true, + }) }); + unit_step.dependOn(&b.addRunArtifact(shell_bin_test).step); // crt.zig is pure std — the mouse-mapping-vs-shader-formula test const crt_test = b.addTest(.{ .root_module = b.createModule(.{ .target = target, |
