From 7adbb5160d24bde9a65b5999d1ccd6ea4ec053b5 Mon Sep 17 00:00:00 2001 From: "Jeffrey C. Ollie" Date: Wed, 9 Sep 2026 01:29:04 -0500 Subject: [PATCH] build/libghostty-vt: export uucode so that it can be re-used --- src/build/SharedDeps.zig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/build/SharedDeps.zig b/src/build/SharedDeps.zig index 86cfecc05..72abfb9ab 100644 --- a/src/build/SharedDeps.zig +++ b/src/build/SharedDeps.zig @@ -76,6 +76,12 @@ pub fn init(b: *std.Build, cfg: *const Config) !SharedDeps { .build_config_path = b.path("src/build/uucode_config.zig"), }).module("uucode"); + // Re-export the uucode module so that Zig programs that embed libgtostty-vt + // can use it. This is necessary to use libraries like libvaxis in + // the embedding program that need uucode as well (libvaxis provides + // -Dexternal_uucode for this). + try b.modules.put(b.allocator, b.dupe("uucode"), uucode_mod); + var result: SharedDeps = .{ .config = cfg, .help_strings = try .init(b, cfg),