example/zig-vt: add comment explaining how to get zero-dep build

pull/8892/head
Mitchell Hashimoto 2025-09-23 11:54:37 -07:00
parent 31af87e021
commit f97518cc10
No known key found for this signature in database
GPG Key ID: 523D5DC389D273BC
1 changed files with 7 additions and 1 deletions

View File

@ -15,7 +15,13 @@ pub fn build(b: *std.Build) void {
// You'll want to use a lazy dependency here so that ghostty is only
// downloaded if you actually need it.
if (b.lazyDependency("ghostty", .{})) |dep| {
if (b.lazyDependency("ghostty", .{
// Setting simd to false will force a pure static build that
// doesn't even require libc, but it has a significant performance
// penalty. If your embedding app requires libc anyway, you should
// always keep simd enabled.
// .simd = false,
})) |dep| {
exe_mod.addImport(
"ghostty-vt",
dep.module("ghostty-vt"),