| Section | Title |
|---|---|
| 1 | zig build |
| 2 | build.zig |
| 3 | Build Steps |
| 4 | Build Options |
| 5 | Tests |
| 6 | Examples |
| 7 | Dependencies |
| 8 | Cross Builds |
| 9 | Exercises |
`zig build`Large programs are rarely built with a single compiler command.
`build.zig`The file build.zig is a Zig program.
Build StepsA build file describes steps.
Build OptionsA build option is a value passed to build.zig from the command line.
TestsZig has tests in the language.
ExamplesExamples are small programs kept inside the project.
DependenciesA Zig package may depend on another package.
Cross BuildsZig can build for a different target than the machine running the compiler.
ExercisesThese exercises use the material from Chapters 15.1 through 15.8. Most are small. The goal is to practice reading and writing build.zig files until the structure becomes familiar.