summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-08-05 19:32:30 -0300
committerGabriel Schneider <[email protected]>2026-08-10 09:17:07 -0300
commit8aafc3fa24c7475a07259eb06cd5d217f510df98 (patch)
tree62115e1ef1f15c57022060124c5ff934b778e169 /build.zig
parent30a44a55232b829866bc3554647de21929276d1a (diff)
downloadpardes-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.zig11
1 files changed, 11 insertions, 0 deletions
diff --git a/build.zig b/build.zig
index 4957adb4..feefecdc 100644
--- a/build.zig
+++ b/build.zig
@@ -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,