andersch.dev

<2025-05-01 Thu>

Unity Build

A unity build (or single translation unit build) is a method to speed up compile times in C and C++ development, where multiple translation units (i.e. .c or .cpp files) are combined into a single one that gets compiled. This is usually done by #including all source files into a single .c(pp).

Their simplicity often pairs well with the use of build scripts.