lib-vt: enable freestanding wasm builds (#9301)

This makes `libghostty-vt` build for freestanding wasm targets (aka a
browser) and produce a `ghostty-vt.wasm` file. This exports the same C
API that libghostty-vt does.

This commit specifically makes the changes necessary for the build to
build properly and for us to run the build in CI. We don't yet actually
try using it...
This commit is contained in:
Mitchell Hashimoto
2025-10-21 20:55:54 -07:00
committed by GitHub
parent 3548acfac6
commit 9dc2e5978f
10 changed files with 94 additions and 109 deletions

View File

@@ -204,6 +204,7 @@ jobs:
aarch64-linux,
x86_64-linux,
x86_64-windows,
wasm32-freestanding,
]
runs-on: namespace-profile-ghostty-sm
needs: test