mirror-ghostty/example/c-vt-build-info
Jeffrey C. Ollie 06340cd3f0
libghostty-vt: add semver pre info to build info
2026-04-06 17:17:30 -05:00
..
src libghostty-vt: add semver pre info to build info 2026-04-06 17:17:30 -05:00
README.md vt: add ghostty_build_info API for querying build configuration 2026-03-21 07:22:18 -07:00
build.zig vt: add ghostty_build_info API for querying build configuration 2026-03-21 07:22:18 -07:00
build.zig.zon vt: add ghostty_build_info API for querying build configuration 2026-03-21 07:22:18 -07:00

README.md

Example: ghostty-vt Build Info

This contains a simple example of how to use the ghostty-vt build info API to query compile-time build configuration.

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