Something went wrong. Try again.
Ghostty for the web with xterm.js API compatibility
Something went wrong. Try again.
544 B · 23 lines
Zig
at init
123456789101112131415161718192021222324const std = @import("std");
pub fn build(b: *std.Build) void { const target = b.resolveTargetQuery(.{ .cpu_arch = .wasm32, .os_tag = .freestanding, }); const optimize = b.standardOptimizeOption(.{}); const exe = b.addExecutable(.{ .name = "ghostty-terminal", .root_source_file = b.path("main.zig"), .target = target, .optimize = optimize, }); // Allow exported symbols exe.rdynamic = true; exe.entry = .disabled; b.installArtifact(exe);}