about things notes.zzstoatzz.io
notes
README.md

build system #

notes on zig's build system, drawn from studying ghostty (terminal emulator) and bun (javascript runtime). both are large, production zig projects with sophisticated builds.

notes #

  • organization - structuring build.zig for large projects
  • dependencies - vendored vs system libs, lazy deps, pinning
  • codegen - generating zig source at build time
  • cross-compilation - targeting multiple platforms
  • distribution - cross-compile matrix in a release step, static-linking facts, strip for size, and why static hosts need .tar.gz (they 404 extensionless binaries)