mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-07-31 12:49:03 +00:00
This PR fixes static linking for libghostty-vt on Windows by propagating a couple of missing dependencies (discovered while running Neovim's Zig build, see https://github.com/neovim/neovim/actions/runs/30130848061/job/89604799965?pr=39773).
Example: ghostty-vt Static Linking
This contains a simple example of how to statically link the ghostty-vt
C library with a C program using the ghostty-vt-static artifact. It is
otherwise identical to the c-vt example.
This uses a build.zig and Zig to build the C program so that we
can reuse a lot of our build logic and depend directly on our source
tree, but Ghostty emits a standard C library that can be used with any
C tooling.
Usage
Run the program:
zig build run